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} ) }