Skip to content

Commit

Permalink
patch: Add fallback for unnamed products and update closed service lo…
Browse files Browse the repository at this point in the history
…gic (#111)
  • Loading branch information
acalinica authored Feb 28, 2025
1 parent e06fe63 commit a2bf003
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ProductCard = observer(
: null;

const isClosed =
!!liveServices?.length &&
liveServices?.length === 0 &&
liveServices.every((service) => service?.tempValue?.closed);

const handleCloseChange = (closed: boolean) => {
Expand Down Expand Up @@ -108,7 +108,9 @@ export const ProductCard = observer(
},
)}
>
{sku?.value?.name || thisGroupLineItems?.[0]?.value?.description}
{sku?.value?.name ||
thisGroupLineItems?.[0]?.value?.description ||
'Unnamed product'}
</p>

<div className='flex items-baseline'>
Expand Down

0 comments on commit a2bf003

Please sign in to comment.