chore: fix order id
This commit is contained in:
@@ -151,6 +151,7 @@ export default function CheckoutScreen() {
|
||||
if (res.success && res.payment_method === "crypto") {
|
||||
setCryptoData({
|
||||
command_id: res.command_id!,
|
||||
client_order_number: (res as any).client_order_number,
|
||||
payment_status: res.payment_status!,
|
||||
pay_address: res.pay_address!,
|
||||
pay_amount: res.pay_amount!,
|
||||
@@ -641,7 +642,7 @@ export default function CheckoutScreen() {
|
||||
</View>
|
||||
</View>
|
||||
<Text style={styles.confirmText}>
|
||||
Votre commande #{confirmationData?.command_id} a ete creee avec succes.
|
||||
Votre commande #{confirmationData?.client_order_number ?? confirmationData?.command_id} a ete creee avec succes.
|
||||
</Text>
|
||||
{confirmationData?.referral_used > 0 && (
|
||||
<View style={styles.confirmInfo}>
|
||||
@@ -677,7 +678,7 @@ export default function CheckoutScreen() {
|
||||
{/* Commande */}
|
||||
<View style={styles.cryptoRow}>
|
||||
<Text style={styles.cryptoLabel}>Commande</Text>
|
||||
<Text style={styles.cryptoValue}>#{cryptoData.command_id}</Text>
|
||||
<Text style={styles.cryptoValue}>#{cryptoData.client_order_number ?? cryptoData.command_id}</Text>
|
||||
</View>
|
||||
|
||||
{/* Statut */}
|
||||
|
||||
Reference in New Issue
Block a user