Skip to content

Commit 800f22f

Browse files
committed
changes based on comments
1 parent 52a6650 commit 800f22f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/concentration-display/ConcentrationSlider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const ConcentrationSlider: React.FC<SliderProps> = ({
7171
<Mark
7272
index={
7373
index < 1 && index > 0
74-
? (index.toFixed(1) as unknown as number)
74+
? Number(index.toFixed(1))
7575
: index
7676
}
7777
disabledNumbers={disabledNumbers}

src/components/concentration-display/LiveConcentrationDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const LiveConcentrationDisplay: React.FC<LiveConcentrationDisplayProps> = ({
1919
const { maxConcentration, getAgentColor } = useContext(SimulariumContext);
2020
// the steps have a 2px gap, so we are adjusting the
2121
// size of the step based on the total number we want
22-
const steps = Math.max(maxConcentration, 10);
22+
const steps = maxConcentration;
2323
const size = width / steps - 2;
2424
return (
2525
<div className={styles.container}>

0 commit comments

Comments
 (0)