Restore the loading state of the app. Closes #2195

This commit is contained in:
Gabe Kangas
2022-10-10 18:33:15 -07:00
parent 9b31ee11ac
commit 7967106fcc
2 changed files with 13 additions and 11 deletions

View File

@@ -11,6 +11,10 @@ export const Sidebar: FC = () => {
const currentUser = useRecoilValue(currentUserAtom);
const messages = useRecoilValue<ChatMessage[]>(visibleChatMessagesSelector);
if (!currentUser) {
return null;
}
const { id, isModerator, displayName } = currentUser;
return (
<Sider className={styles.root} collapsedWidth={0} width={320}>