Skip to content

Commit 1b6d658

Browse files
committed
fix(toast): remove duration for promise error message
1 parent ab5a550 commit 1b6d658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/toast/manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ export const useToastManager = createGlobalState(() => {
114114
if (options.error) {
115115
const msg = options.error(e)
116116
if (typeof msg === 'string') {
117-
update(id, {title: msg, category: 'error'})
117+
update(id, {duration: undefined, title: msg, category: 'error'})
118118
} else {
119-
update(id, {...msg, category: 'error'})
119+
update(id, {duration: undefined, ...msg, category: 'error'})
120120
}
121121
}
122122
})

0 commit comments

Comments
 (0)