Skip to content

Commit

Permalink
Fix unsuccessful test
Browse files Browse the repository at this point in the history
  • Loading branch information
rizqitsani committed Jun 4, 2024
1 parent cfdabd7 commit 6c5ccf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,8 @@ const Toaster = (props: ToasterProps) => {
if (!toasts.find((toast) => toast.id === toastToRemove.id)?.delete) {
ToastState.dismiss(toastToRemove.id);
}

setToasts((toasts) => toasts.filter(({ id }) => id !== toastToRemove.id))
},
[toasts],
);
Expand Down

0 comments on commit 6c5ccf7

Please sign in to comment.