Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrox committed Aug 2, 2024
1 parent 82a58d0 commit 658b87a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ export const reducer = (state: State, action: Action): State => {
}
return {
...state,
toasts: toasts
.filter((t) => t.id !== action.toastId)

toasts: toasts.filter((t) => t.id !== action.toastId)
};
}
case ActionType.START_PAUSE: {
Expand All @@ -127,7 +125,6 @@ export const reducer = (state: State, action: Action): State => {
};

function compensateForPausedTime(toasts: Toast[], pausedAt: number ) {
debugger;
return toasts.map(t => {
const newToast = {
...t,
Expand Down

0 comments on commit 658b87a

Please sign in to comment.