From d68a16a224a39fdbc4a5e12297993b7fd9baeb1b Mon Sep 17 00:00:00 2001 From: Nathan Seva Date: Tue, 5 Mar 2024 17:28:51 +0100 Subject: [PATCH] fix toast --- src/components/Toast/Toast.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Toast/Toast.tsx b/src/components/Toast/Toast.tsx index cac1c040..6e24f27f 100644 --- a/src/components/Toast/Toast.tsx +++ b/src/components/Toast/Toast.tsx @@ -71,7 +71,7 @@ export function ToastContent(props: ToastContentProps) { if (typeof t.message === 'string') { content = t.message; } else { - if (!t.message) return; + if (!t.message) return null; content = (t.message as CallableFunction)().props.children; }