This commit is contained in:
Mike Jolley 2020-06-23 11:10:06 +01:00 committed by GitHub
parent 74b6cc5764
commit 94306573bc
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ const AddToCartButton = ( { product } ) => {
buttonProps.href = permalink;
buttonProps.rel = 'nofollow';
} else {
buttonProps.onClick = addToCart;
buttonProps.onClick = () => {
addToCart();
};
}
return (