Skip to content

Commit

Permalink
fix: start toasterCounter on 1 to avoid falsy values when comparing to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
estubmo authored Oct 1, 2023
1 parent d01cfd9 commit 8c34fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ToastTypes,
} from './types';

let toastsCounter = 0;
let toastsCounter = 1;

class Observer {
subscribers: Array<(toast: ExternalToast | ToastToDismiss) => void>;
Expand Down

0 comments on commit 8c34fe2

Please sign in to comment.