robbyson-frontend-library 1.0.96-rc2 → 1.0.97-rc2

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.
@@ -65,7 +65,7 @@ export function getChatName(chat) {
65
65
  var _a;
66
66
  if (!(chat === null || chat === void 0 ? void 0 : chat.name))
67
67
  return "";
68
- return chat.type !== ChatConstants.TYPE_CHAT.GROUP
68
+ return (chat === null || chat === void 0 ? void 0 : chat.type) !== ChatConstants.TYPE_CHAT.GROUP
69
69
  ? _.startCase((_a = chat.name) === null || _a === void 0 ? void 0 : _a.toLowerCase())
70
70
  : chat.name;
71
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robbyson-frontend-library",
3
- "version": "1.0.96-rc2",
3
+ "version": "1.0.97-rc2",
4
4
  "description": "Robbyson frontend Library",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT",
@@ -101,7 +101,7 @@ export function checkIfUserIsSingleAdmin(
101
101
  export function getChatName(chat: ChatModel): string {
102
102
  if (!chat?.name) return "";
103
103
 
104
- return chat.type !== ChatConstants.TYPE_CHAT.GROUP
104
+ return chat?.type !== ChatConstants.TYPE_CHAT.GROUP
105
105
  ? _.startCase(chat.name?.toLowerCase())
106
106
  : chat.name;
107
107
  }