@hanzo/commerce 7.1.18 → 7.1.19

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
- if (!uiSpec.singleFamily?.options) {
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 py-1.5 border-t text-sm'>
107
+ <div className={'flex flex-col gap-0.5 py-1.5 text-sm ' + (!showPromoCode ? 'border-t' : '')} >
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "7.1.18",
3
+ "version": "7.1.19",
4
4
  "description": "e-commerce framework.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",