chore: fix unit

This commit is contained in:
2026-03-04 17:03:08 +01:00
parent 06cfbae4e1
commit a18b71319e
3 changed files with 6 additions and 4 deletions
@@ -529,7 +529,7 @@ export default function ProductDetailScreen() {
<View style={styles.priceIndicator} />
<Text style={styles.priceText}>
{selectedPrice.toFixed(2)} {" "}
{selectedGrams && `pour ${selectedGrams}g`}
{selectedGrams && `pour ${selectedGrams}${product.unit || "g"}`}
</Text>
</View>
)}
@@ -557,7 +557,7 @@ export default function ProductDetailScreen() {
>
<Text style={styles.dropdownText}>
{selectedGrams !== null
? `${selectedGrams}g - ${selectedPrice.toFixed(2)}`
? `${selectedGrams}${product.unit || "g"} - ${selectedPrice.toFixed(2)}`
: "Choisir une quantite"}
</Text>
<Ionicons
@@ -645,7 +645,7 @@ export default function ProductDetailScreen() {
},
]}
>
{p.quantity}g
{p.quantity}{product.unit || "g"}
</Text>
<Text
style={[