Skip to content

Commit 2542b5f

Browse files
authored
fix: set 5s of duration for all the toast notifications (#281)
1 parent 4499309 commit 2542b5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/use-toast-mutation.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export function useToastMutation<
4242
success:
4343
typeof successMsg === "function" ? successMsg(variables) : successMsg,
4444
loading: loadingMsg ?? "Loading...",
45+
duration: 5000,
4546
error: (e: TError) => {
4647
if (errorMsg) return errorMsg;
4748

0 commit comments

Comments
 (0)