From 525aee83c6f28ad9294b57f8b7ed76e7cf1faa1e Mon Sep 17 00:00:00 2001 From: Timo Lins Date: Mon, 30 Dec 2024 13:47:19 +0100 Subject: [PATCH] Swap order --- src/core/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/store.ts b/src/core/store.ts index 99867a2..7bf1a8f 100644 --- a/src/core/store.ts +++ b/src/core/store.ts @@ -61,7 +61,7 @@ export const reducer = (state: State, action: Action): State => { ...state, toasts: state.toasts.map((t) => t.id === action.toast.id - ? { ...t, ...action.toast, dismissed: false, visible: true } + ? { ...t, dismissed: false, visible: true, ...action.toast } : t ), };