* Fixing JS error

* Fixing js error and storing issue
Этот коммит содержится в:
Corey Hulen
2017-06-30 17:19:04 -07:00
коммит произвёл GitHub
родитель 6e5b1b7cd4
Коммит d2eb10b7e6
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -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});
}

Просмотреть файл

@@ -1011,7 +1011,7 @@ export function displayUsernameForUser(user) {
return name;
}
return null;
return '';
}
// Converts a file size in bytes into a human-readable string of the form '123MB'.