Fix login not showing the usernames (#6652)

This commit is contained in:
Daniel Espino García
2022-09-22 22:34:12 +02:00
committed by GitHub
parent d20245f63f
commit e905f7df29
2 changed files with 4 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ export const fetchConfigAndLicense = async (serverUrl: string, fetchOnly = false
]);
if (!fetchOnly) {
storeConfigAndLicense(serverUrl, config, license);
await storeConfigAndLicense(serverUrl, config, license);
}
return {config, license};

View File

@@ -62,7 +62,9 @@ const CategoryBody = ({sortedChannels, unreadIds, unreadsOnTop, category, limit,
}, [category.collapsed]);
useEffect(() => {
fetchDirectChannelsInfo(serverUrl, directChannels);
if (directChannels.length) {
fetchDirectChannelsInfo(serverUrl, directChannels);
}
}, [directChannels.length]);
const height = ids.length ? ids.length * 40 : 0;