@hanzo/commerce 7.1.18 → 7.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -122,10 +122,7 @@ const CarouselBuyCard: React.FC<{
|
|
|
122
122
|
if (peek.role === 'single-family') {
|
|
123
123
|
|
|
124
124
|
const sort = (): 'none' | 'asc' | 'desc' => {
|
|
125
|
-
|
|
126
|
-
return 'none'
|
|
127
|
-
}
|
|
128
|
-
const options = uiSpec.singleFamily.options
|
|
125
|
+
const options = uiSpec.singleFamily?.options ?? {}
|
|
129
126
|
const showSlider = 'showSlider' in options ? options.showSlider! : true
|
|
130
127
|
return ('sort' in options) ?
|
|
131
128
|
options.sort!
|
|
@@ -104,7 +104,7 @@ const CartPanel: React.FC<PropsWithChildren & {
|
|
|
104
104
|
</Suspense>
|
|
105
105
|
)}
|
|
106
106
|
{(showShipping || showPromoCode) && (
|
|
107
|
-
<div className='flex flex-col gap-0.5
|
|
107
|
+
<div className={'flex flex-col gap-0.5 pb-1.5 text-sm ' + (!showPromoCode ? 'border-t pt-1.5' : '')} >
|
|
108
108
|
<p className='flex justify-between'>
|
|
109
109
|
<span className='text-muted-1'>Subtotal</span>
|
|
110
110
|
<span className='font-semibold'>{cmmc.cartTotal === 0 ? '0' : formatCurrencyValue(cmmc.cartTotal)}</span>
|