We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e107a94 commit de99ef3Copy full SHA for de99ef3
new-log-viewer/src/components/PopUps/PopUpMessageBox.tsx
@@ -53,7 +53,9 @@ const PopUpMessageBox = ({message}: PopUpMessageProps) => {
53
return () => {};
54
}
55
56
- const totalIntervals = timeoutMillis / AUTO_DISMISS_PERCENT_UPDATE_INTERVAL_MILLIS;
+ const totalIntervals = Math.ceil(
57
+ timeoutMillis / AUTO_DISMISS_PERCENT_UPDATE_INTERVAL_MILLIS
58
+ );
59
const intervalId = setInterval(() => {
60
intervalCountRef.current++;
61
const newPercentRemaining = 100 - (100 * (intervalCountRef.current / totalIntervals));
0 commit comments