ordering-ui-react-native 0.21.23 → 0.21.24

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.21.23",
3
+ "version": "0.21.24",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -96,10 +96,10 @@ const NewOrderNotificationUI = (props: any) => {
96
96
  handlePlayNotificationSound({ evt: 2, orderId: value?.id })
97
97
  }
98
98
  }
99
- if (evtType === 3 || value.author_id === user.id) return
99
+ if (evtType === 3 || value?.author_id === user.id) return
100
100
  setTimeout(() => handlePlayNotificationSound({
101
101
  evt: evtType,
102
- orderId: value?.driver ? value?.order_id : evtList[evtType].event === 'messages' ? value?.order?.id : value?.order_id
102
+ orderId: value?.driver ? value?.order_id : evtList[evtType].event === 'messages' ? value?.order?.id : value?.order_id ?? value?.id
103
103
  }), 1000)
104
104
  }
105
105