We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab5a550 commit 1b6d658Copy full SHA for 1b6d658
src/components/toast/manager.ts
@@ -114,9 +114,9 @@ export const useToastManager = createGlobalState(() => {
114
if (options.error) {
115
const msg = options.error(e)
116
if (typeof msg === 'string') {
117
- update(id, {title: msg, category: 'error'})
+ update(id, {duration: undefined, title: msg, category: 'error'})
118
} else {
119
- update(id, {...msg, category: 'error'})
+ update(id, {duration: undefined, ...msg, category: 'error'})
120
}
121
122
})
0 commit comments