chore: build
Frontend Admin - EAS Build / build (push) Successful in 1h21m50s
Frontend Client - EAS Build / build (push) Successful in 1h17m38s

This commit is contained in:
Xor290
2026-08-30 15:23:59 +02:00
parent a35031b2a1
commit 6fca16a58c
4 changed files with 146 additions and 61 deletions
+7 -2
View File
@@ -961,12 +961,17 @@ export const toggle2FA = async (
// 🏆 POINTS — RÉCOMPENSES
// ============================================
export type RewardConfigProduct = {
product_id: number;
product_name: string;
quantity: number;
};
export type RewardCategoryConfig = {
category: string;
type: "free_product" | "half_price_product";
all_products: boolean;
product_ids: number[];
product_names: string[];
products: RewardConfigProduct[];
quantity: number;
};
@@ -830,14 +830,14 @@ export default function OrderHistoryScreen() {
</View>,
]
: (
cfg.product_names ??
cfg.products ??
[]
).map(
(
name,
p,
) => (
<View
key={`${cfg.category}-${name}`}
key={`${cfg.category}-${p.product_id}`}
style={
styles.rewardAmountBadge
}
@@ -848,7 +848,7 @@ export default function OrderHistoryScreen() {
}
>
{
name
p.product_name
}
</Text>
</View>