Fix another rendering error

This commit is contained in:
Gabe Kangas
2023-01-10 16:51:06 -08:00
parent 4b17bf934a
commit 8b36194471

View File

@@ -66,6 +66,9 @@ export const UserDropdown: FC<UserDropdownProps> = ({ username: defaultUsername
);
const currentUser = useRecoilValue(currentUserAtom);
if (!currentUser) {
return null;
}
const { displayName } = currentUser;
const username = defaultUsername || displayName;