ordering-ui-react-native 0.19.1 → 0.19.2
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
|
@@ -339,6 +339,9 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
+
const customerName = `${order?.customer?.name ?? ''} ${order?.customer?.middle_name ?? ''} ${order?.customer?.lastname ?? ''} ${order?.customer?.second_lastname ?? ''
|
|
343
|
+
}`?.replace(' ', ' ')?.trim() ?? ''
|
|
344
|
+
|
|
342
345
|
return (
|
|
343
346
|
<>
|
|
344
347
|
<Content>
|
|
@@ -373,8 +376,8 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
373
376
|
|
|
374
377
|
<OText style={{ marginBottom: 5 }}>
|
|
375
378
|
{`${t('DELIVERY_DATE', 'Delivery Date')}: ${order?.delivery_datetime_utc
|
|
376
|
-
|
|
377
|
-
|
|
379
|
+
? parseDate(order?.delivery_datetime_utc)
|
|
380
|
+
: parseDate(order?.delivery_datetime, { utc: false })
|
|
378
381
|
}`}
|
|
379
382
|
</OText>
|
|
380
383
|
|
|
@@ -400,9 +403,7 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
400
403
|
adjustsFontSizeToFit
|
|
401
404
|
ellipsizeMode="tail"
|
|
402
405
|
color={theme.colors.textGray}>
|
|
403
|
-
{`${t('FULL_NAME', 'Full Name')}: ${
|
|
404
|
-
} ${order?.customer?.lastname} ${order?.customer?.second_lastname
|
|
405
|
-
}`}
|
|
406
|
+
{`${t('FULL_NAME', 'Full Name')}: ${customerName}`}
|
|
406
407
|
</OText>
|
|
407
408
|
|
|
408
409
|
<OText
|