We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c171c5 + d851ac2 commit eca8cadCopy full SHA for eca8cad
src/components/Profiling/Dialog/ProfilingDialog.tsx
@@ -88,7 +88,10 @@ export default ({ isVisible }: { isVisible: boolean }) => {
88
0
89
);
90
const maxVDelta = profile.vUpperCutOff - profile.vLowerCutOff;
91
- const voltageProgress = Math.min((vDelta / maxVDelta) * 100, 100);
+ const voltageProgress = Math.max(
92
+ 0,
93
+ Math.min((vDelta / maxVDelta) * 100, 100)
94
+ );
95
96
const millAmpHrProgress = Math.min(
97
(theoreticalProgressMillAmpHr * alpha +
0 commit comments