diff --git a/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx b/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx index e2872c03ef5..deb96de920b 100644 --- a/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx +++ b/src/mantine-notifications/src/NotificationContainer/NotificationContainer.tsx @@ -17,7 +17,7 @@ export default function NotificationContainer({ innerRef, ...others }: NotificationContainerProps) { - const { autoClose: notificationAutoClose, ...notificationProps } = notification; + const { autoClose: notificationAutoClose, message, ...notificationProps } = notification; const autoCloseTimeout = getAutoClose(autoClose, notificationAutoClose); const hideTimeout = useRef(); @@ -56,7 +56,7 @@ export default function NotificationContainer({ onMouseLeave={handleDelayedHide} ref={innerRef} > - {notification.message} + {message} ); }