Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

fix: set 5s of duration for all the toast notifications #281

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/hooks/use-toast-mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function useToastMutation<
success:
typeof successMsg === "function" ? successMsg(variables) : successMsg,
loading: loadingMsg ?? "Loading...",
duration: 5000,
error: (e: TError) => {
if (errorMsg) return errorMsg;

Expand Down
Loading