ordering-ui-react-native 0.22.62 → 0.22.63

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.22.62",
3
+ "version": "0.22.63",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -152,12 +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 && orderStatus.includes(value.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
160
- setCurrentEvent({
159
+ if ((!orderStatus.includes(value.status) && evtType !== 1 && isBusinessApp) || value?.author_id === user.id) return setCurrentEvent({
161
160
  evt: evtType,
162
161
  orderId: value?.driver
163
162
  ? value?.order_id ?? value?.id