Skip to content

Commit

Permalink
fix/particlerange
Browse files Browse the repository at this point in the history
  • Loading branch information
pbullhove committed Apr 4, 2024
1 parent 45cbfbb commit e9be6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/Components/Bridging/Graphs/BridgeGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function BridgeGraph({ yAxis, graphData, sizeFractions, bridges }: Bridge
useEffect(() => {
setParticleFromPercentage(particleSizeOffsetPercentage(particleRange.from))
if (particleRange.to > sizeFractions[sizeFractions.length - 1]) {
setParticleToPercentage(`${sizeFractions[sizeFractions.length - 1]}`)
setParticleToPercentage(`${sizeFractions[sizeFractions.length - 1]}%`)
} else {
setParticleToPercentage(particleSizeOffsetPercentage(particleRange.to))
}
Expand Down

0 comments on commit e9be6ab

Please sign in to comment.