ordering-ui-react-native 0.21.6 → 0.21.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -80,6 +80,9 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
80
80
|
!parseInt(configs?.driver_tip_use_custom?.value, 10) &&
|
|
81
81
|
verifyDecimals(order?.summary?.driver_tip, parseNumber);
|
|
82
82
|
|
|
83
|
+
const customerName = `${order?.customer?.name ?? ''} ${order?.customer?.middle_name ?? ''} ${order?.customer?.lastname ?? ''} ${order?.customer?.second_lastname ?? ''
|
|
84
|
+
}`?.replace(' ', ' ')?.trim() ?? ''
|
|
85
|
+
|
|
83
86
|
const orderSummary = () => {
|
|
84
87
|
return `
|
|
85
88
|
<div>
|
|
@@ -100,9 +103,7 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
100
103
|
</p>
|
|
101
104
|
|
|
102
105
|
<h1>${t('CUSTOMER_DETAILS', 'Customer details')}</h1>
|
|
103
|
-
<p style="font-size: 27px"> ${t('FULL_NAME', 'Full Name')}: ${
|
|
104
|
-
} ${order?.customer?.middle_name} ${order?.customer?.lastname} ${order?.customer?.second_lastname
|
|
105
|
-
}
|
|
106
|
+
<p style="font-size: 27px"> ${t('FULL_NAME', 'Full Name')}: ${customerName}
|
|
106
107
|
</br>
|
|
107
108
|
${t('EMAIL', 'Email')}: ${order?.customer?.email}
|
|
108
109
|
</br>
|
|
@@ -339,9 +340,6 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
339
340
|
}
|
|
340
341
|
};
|
|
341
342
|
|
|
342
|
-
const customerName = `${order?.customer?.name ?? ''} ${order?.customer?.middle_name ?? ''} ${order?.customer?.lastname ?? ''} ${order?.customer?.second_lastname ?? ''
|
|
343
|
-
}`?.replace(' ', ' ')?.trim() ?? ''
|
|
344
|
-
|
|
345
343
|
return (
|
|
346
344
|
<>
|
|
347
345
|
<Content>
|