diff --git a/src/components/notifications/ui-notification-toast.tsx b/src/components/notifications/ui-notification-toast.tsx index 230b81757..881680386 100644 --- a/src/components/notifications/ui-notification-toast.tsx +++ b/src/components/notifications/ui-notification-toast.tsx @@ -49,7 +49,7 @@ export const UiNotificationToast: React.FC = ({ useInterval( () => setRemainingSteps((lastRemainingSteps) => lastRemainingSteps - 1), - useMemo(() => (dismissed || remainingSteps <= 0 ? null : 1000 / STEPS_PER_SECOND), [dismissed, remainingSteps]) + !dismissed && remainingSteps > 0 ? 1000 / STEPS_PER_SECOND : null ) useEffect(() => {