Skip to content

Commit

Permalink
fix: disabled button classes when selectedVariantId is defined are no…
Browse files Browse the repository at this point in the history
…t being set (vercel#1333)
  • Loading branch information
elberthcorniell authored May 4, 2024
1 parent 887d437 commit a5de917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cart/add-to-cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function SubmitButton({
aria-disabled={pending}
className={clsx(buttonClasses, {
'hover:opacity-90': true,
disabledClasses: pending
[disabledClasses]: pending
})}
>
<div className="absolute left-0 ml-4">
Expand Down

0 comments on commit a5de917

Please sign in to comment.