diff options
Diffstat (limited to 'webapp/utils/channel_utils.jsx')
-rw-r--r-- | webapp/utils/channel_utils.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/utils/channel_utils.jsx b/webapp/utils/channel_utils.jsx index 1afce39b4..e3a9f0423 100644 --- a/webapp/utils/channel_utils.jsx +++ b/webapp/utils/channel_utils.jsx @@ -107,7 +107,7 @@ export function sortChannelsByDisplayName(a, b) { const aDisplayName = getChannelDisplayName(a); const bDisplayName = getChannelDisplayName(b); - if (aDisplayName !== bDisplayName) { + if (aDisplayName !== null && bDisplayName !== null && aDisplayName !== bDisplayName) { return aDisplayName.localeCompare(bDisplayName, locale, {numeric: true}); } |