Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/molecule/notification/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const MoleculeNotification = ({
autoClose: autoCloseTiming = AUTO_CLOSE.short,
onClose = EMPTY_METHOD,
effect = true,
buttons,
buttons = [],
children,
icon,
position = POSITION.relative,
Expand Down Expand Up @@ -131,9 +131,9 @@ const MoleculeNotification = ({
</div>
)}
</div>
{buttons && (
{buttons.length ? (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{buttons.length ? (
{buttons?.length ? (

and remove the default value

<div className={`${CLASS}-buttonsContainer`}>{getButtons()}</div>
)}
) : null}
</div>
)
}
Expand Down