Skip to content

Commit

Permalink
fix(useToast): rename variable in forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 1, 2024
1 parent 6b7a3cf commit a7a0a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2/components/ui/hooks/useToast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export const reducer = (state: State, action: Action): State => {
if (toastId) {
addToRemoveQueue(toastId)
} else {
state.toasts.forEach((toast) => {
addToRemoveQueue(toast.id)
state.toasts.forEach((t) => {
addToRemoveQueue(t.id)
})
}

Expand Down

0 comments on commit a7a0a99

Please sign in to comment.