We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e587a6e commit 33ff161Copy full SHA for 33ff161
src/components/BrewCompleteScreen/BrewCompleteScreen.tsx
@@ -68,10 +68,11 @@ export const BrewCompleteScreen = () => {
68
notificationSelector.selectHasNotifications
69
);
70
71
- const weight =
72
- Math.abs(lastBrewWeight) < 1000
+ const weight = !isNaN(lastBrewWeight)
+ ? Math.abs(lastBrewWeight) < 1000
73
? lastBrewWeight.toFixed(1)
74
- : lastBrewWeight.toFixed(0);
+ : lastBrewWeight.toFixed(0)
75
+ : lastBrewWeight;
76
77
const isPurging = statsName === 'purge';
78
0 commit comments