From 456f84e79693d358bf7fa38c6a7b91c5329b18a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jenifer=20Lo=CC=81pez?= Date: Thu, 26 Oct 2023 09:46:30 +0200 Subject: [PATCH] fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render contain --- components/molecule/notification/src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/molecule/notification/src/index.js b/components/molecule/notification/src/index.js index 199b56972a..76b07e12b1 100644 --- a/components/molecule/notification/src/index.js +++ b/components/molecule/notification/src/index.js @@ -30,7 +30,7 @@ const MoleculeNotification = ({ autoClose: autoCloseTiming = AUTO_CLOSE.short, onClose = EMPTY_METHOD, effect = true, - buttons, + buttons = [], children, icon, position = POSITION.relative, @@ -131,9 +131,9 @@ const MoleculeNotification = ({ )} - {buttons && ( + {buttons.length ? (
{getButtons()}
- )} + ) : null} ) }