summaryrefslogtreecommitdiff
path: root/apps/web/src/hooks/use-toast.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/hooks/use-toast.ts')
-rw-r--r--apps/web/src/hooks/use-toast.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/web/src/hooks/use-toast.ts b/apps/web/src/hooks/use-toast.ts
index c682cd1f..dcc02dcd 100644
--- a/apps/web/src/hooks/use-toast.ts
+++ b/apps/web/src/hooks/use-toast.ts
@@ -6,7 +6,7 @@ import * as React from "react";
import type { ToastActionElement, ToastProps } from "../components/ui/toast";
const TOAST_LIMIT = 1;
-const TOAST_REMOVE_DELAY = 1000000;
+const TOAST_REMOVE_DELAY = 1_000_000;
type ToasterToast = ToastProps & {
id: string;
@@ -64,7 +64,7 @@ const addToRemoveQueue = (toastId: string) => {
toastTimeouts.delete(toastId);
dispatch({
type: "REMOVE_TOAST",
- toastId: toastId,
+ toastId,
});
}, TOAST_REMOVE_DELAY);
@@ -162,7 +162,7 @@ function toast({ ...props }: Toast) {
});
return {
- id: id,
+ id,
dismiss,
update,
};