fix: wrong logic operator
Signed-off-by: Antony Bouyon <antony.bouyon@believe.com>
This commit is contained in:
@@ -54,7 +54,7 @@ export function Button({
|
||||
{...dataAttributes}
|
||||
{...cleanedProps}
|
||||
>
|
||||
{props.icon ?? <span className={classNames.icon}>{props.icon}</span>}
|
||||
{props.icon && <span className={classNames.icon}>{props.icon}</span>}
|
||||
{props.children}
|
||||
</button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user