ordering-ui-react-native 0.16.31 → 0.16.32

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.16.31",
3
+ "version": "0.16.32",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -484,12 +484,12 @@ const ChatUI = (props: MessagesParams) => {
484
484
  image: message.source,
485
485
  system: message.type === 1,
486
486
  user: {
487
- _id: message.author.id,
488
- name: message.author.name,
487
+ _id: message.author?.id,
488
+ name: message.author?.name,
489
489
  can_see: message?.can_see,
490
- level: message.author.level,
490
+ level: message.author?.level,
491
491
  avatar:
492
- message.author.id !== user?.id && type === USER_TYPE.DRIVER
492
+ message.author?.id !== user?.id && type === USER_TYPE.DRIVER
493
493
  ? order?.driver?.photo
494
494
  : order?.business?.logo,
495
495
  },