diff --git a/src/components/toast-bar.tsx b/src/components/toast-bar.tsx index 441af5f..e184baf 100644 --- a/src/components/toast-bar.tsx +++ b/src/components/toast-bar.tsx @@ -93,12 +93,17 @@ export const ToastBar: React.FC = React.memo( ...toast.style, }} > - {typeof children === 'function' - ? children({ - icon, - message, - }) - : [icon, message]} + {typeof children === 'function' ? ( + children({ + icon, + message, + }) + ) : ( + <> + {icon} + {message} + + )} ); }