diff --git a/src/core/store.ts b/src/core/store.ts index 506978a..aa04790 100644 --- a/src/core/store.ts +++ b/src/core/store.ts @@ -116,6 +116,7 @@ export const reducer = (state: State, action: Action): State => { return { ...state, + pausedAt: undefined, toasts: state.toasts.map((t) => t.id === toastId || toastId === undefined ? { @@ -129,11 +130,13 @@ export const reducer = (state: State, action: Action): State => { if (action.toastId === undefined) { return { ...state, + pausedAt: undefined, toasts: [], }; } return { ...state, + pausedAt: undefined, toasts: state.toasts.filter((t) => t.id !== action.toastId), };