Fix bouquet builder detection: use name match instead of tags
Tags are never populated from Square, so the tag check never worked. Any item whose name starts with "Build Your" now opens the bouquet picker. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
528fb90303
commit
c72699da16
@ -31,7 +31,7 @@ export default function ProductCard({ item }: Props) {
|
||||
: null
|
||||
|
||||
const { soldOut, lowStock, lowestAvailable: stock } = stockStats(item)
|
||||
const isBouquetBuilder = item.tags.includes('bouquet-builder')
|
||||
const isBouquetBuilder = item.name.toLowerCase().startsWith('build your')
|
||||
|
||||
const priceDisplay = item.price ? `From ${fmt(item.price)}` : 'Custom quote'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user