Skip to content

Commit

Permalink
Fix unsuccessful test
Browse files Browse the repository at this point in the history
  • Loading branch information
rizqitsani committed May 16, 2024
1 parent 0967d8e commit e0ded84
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 @@ -546,6 +546,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 e0ded84

Please sign in to comment.