-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] handling error and not showing InputBox when not authenticated (#…
…107) * handling error and hiding input when cookies not present * added an optional chaining if the array is present or not
- Loading branch information
1 parent
be23250
commit 4beb2e4
Showing
2 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default function messagesSortedByDate(messagesArray) { | ||
return messagesArray.sort(function (a, b) { | ||
return messagesArray?.sort(function (a, b) { | ||
return a.ts < b.ts ? -1 : a.ts > b.ts ? 1 : 0; | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters