Skip to content

Commit

Permalink
Fix max quantity badge
Browse files Browse the repository at this point in the history
  • Loading branch information
didrikmunther committed Aug 4, 2024
1 parent 3f45592 commit 7b4fbdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export function ProductOrderingCard({
</Badge>
</div>
)}
{product.max_quantity != null &&
product.max_quantity > 1 &&
{(product.max_quantity == null ||
product.max_quantity > 1) &&
packageProductBaseQuantity > 0 && (
<Tooltip>
<TooltipTrigger>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function PackageSelectFormPage() {
<AlertDialogTitle>Are you sure?</AlertDialogTitle>
<AlertDialogDescription>
Your cart is not empty, changing the package will
clear all your previous orders
clear the cart. Do you want to continue?
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
Expand Down

0 comments on commit 7b4fbdb

Please sign in to comment.