Add fallback

This commit is contained in:
Eric Bailey
2025-08-22 11:43:52 -05:00
parent 21da06d9a6
commit c8604de75e
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -70,5 +70,9 @@ export function show(
...options,
duration: options?.duration ?? DURATION,
})
} else {
throw new Error(
`Toast can be a string or a React element, got ${typeof content}`,
)
}
}
+4
View File
@@ -49,5 +49,9 @@ export function show(
...options,
duration: options?.duration ?? DURATION,
})
} else {
throw new Error(
`Toast can be a string or a React element, got ${typeof content}`,
)
}
}