Skip to content

Commit

Permalink
Merge pull request #35 from hudochenkov/fix-id
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins authored Feb 19, 2021
2 parents d30d2e4 + e40ebbd commit 8cd1535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const createToast = (
type: ToastType = 'blank',
opts?: ToastOptions
): Toast => ({
id: opts?.id || genId(),
createdAt: Date.now(),
visible: true,
type,
Expand All @@ -28,6 +27,7 @@ const createToast = (
message,
pauseDuration: 0,
...opts,
id: opts?.id || genId(),
});

const createHandler = (type?: ToastType): ToastHandler => (
Expand Down

1 comment on commit 8cd1535

@vercel
Copy link

@vercel vercel bot commented on 8cd1535 Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.