Skip to content

Commit

Permalink
fix: auto close toasts
Browse files Browse the repository at this point in the history
  • Loading branch information
joonatank committed Sep 11, 2024
1 parent 9380029 commit f9c907a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/src/common/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function toast({
label,
text,
type = "info",
duration,
duration = 5,
dataTestId,
ariaLabel = label,
options,
Expand All @@ -152,7 +152,7 @@ export default function toast({
type={type ?? "info"}
label={label}
ariaLabel={ariaLabel}
duration={duration ? duration * 1000 : 5000}
duration={duration * 1000}
dataTestId={dataTestId}
/>,
toastOptions
Expand Down

0 comments on commit f9c907a

Please sign in to comment.