fix: show email when nickname is empty

This commit is contained in:
chenos 2021-03-31 09:30:09 +08:00
parent 9d67637727
commit b761bf876e

View File

@ -58,7 +58,7 @@ export default (props: any) => {
icon={<UserOutlined />}
style={{ marginRight: 5 }}
/>{' '}
{initialState.currentUser.nickname}
{ initialState.currentUser.nickname || initialState.currentUser.email }
</span>
</Dropdown>
</div>