Allow manual prices for products

This commit is contained in:
2026-07-01 11:08:53 +02:00
parent c730d36cfe
commit 6cf8906798
3 changed files with 109 additions and 4 deletions
+8 -1
View File
@@ -49,7 +49,14 @@ export default function AlternativesScreen({ product, preferences, productCache,
<AlternativeProductCard
item={item}
key={item.product.id}
onChoose={() => onChoose(item.product)}
onChoose={() => {
if (typeof item.product.price === 'number') {
onChoose(item.product);
return;
}
onOpenProduct(item.product);
}}
onOpen={() => onOpenProduct(item.product)}
/>
))}