Fix border color class names not being applied correctly (https://github.com/woocommerce/woocommerce-blocks/pull/10468)

This commit is contained in:
Lucio Giannotta 2023-08-04 20:04:24 +08:00 committed by GitHub
parent c411137ba4
commit 76b82000b3
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ function getBorderClassName( attributes: {
: '';
return classnames( {
'has-border-color': borderColor || style?.border?.color,
borderColorClass,
'has-border-color': !! borderColor || !! style?.border?.color,
[ borderColorClass ]: !! borderColorClass,
} );
}