ordering-ui-react-native 0.21.44-release → 0.21.45-release
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
|
@@ -152,11 +152,11 @@ const NewOrderNotificationUI = (props: any) => {
|
|
|
152
152
|
} catch { }
|
|
153
153
|
const duration = moment.duration(moment().diff(moment.utc(value?.last_driver_assigned_at)))
|
|
154
154
|
const assignedSecondsDiff = duration.asSeconds()
|
|
155
|
-
if (assignedSecondsDiff < 5 && !isBusinessApp && !value?.logistic_status
|
|
155
|
+
if (assignedSecondsDiff < 5 && !isBusinessApp && !value?.logistic_status) {
|
|
156
156
|
setCurrentEvent({ evt: 2, orderId: value?.id ?? value?.order_id })
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
if ((!orderStatus.includes(value.status) && evtType !== 1) || value?.author_id === user.id) return
|
|
159
|
+
if ((!orderStatus.includes(value.status) && evtType !== 1 && isBusinessApp) || value?.author_id === user.id) return
|
|
160
160
|
setCurrentEvent({
|
|
161
161
|
evt: evtType,
|
|
162
162
|
orderId: value?.driver
|
|
@@ -380,18 +380,18 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
useEffect(() => {
|
|
383
|
-
scrollRefTab.current?.scrollTo(
|
|
384
|
-
scrollListRef.current?.scrollTo(
|
|
385
|
-
scrollRef.current?.scrollTo(
|
|
383
|
+
scrollRefTab.current?.scrollTo();
|
|
384
|
+
scrollListRef.current?.scrollTo();
|
|
385
|
+
scrollRef.current?.scrollTo();
|
|
386
386
|
setTags({ values: [] })
|
|
387
387
|
}, [currentTabSelected])
|
|
388
388
|
|
|
389
389
|
useEffect(() => {
|
|
390
390
|
const unsubcribe = navigation.addListener('focus', () => {
|
|
391
|
-
currentTabSelected === 'logisticOrders'
|
|
391
|
+
currentTabSelected === 'logisticOrders' && loadLogisticOrders()
|
|
392
392
|
})
|
|
393
393
|
return unsubcribe
|
|
394
|
-
}, [navigation,
|
|
394
|
+
}, [navigation, loadLogisticOrders])
|
|
395
395
|
|
|
396
396
|
return (
|
|
397
397
|
<>
|