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 />} icon={<UserOutlined />}
style={{ marginRight: 5 }} style={{ marginRight: 5 }}
/>{' '} />{' '}
{initialState.currentUser.nickname} { initialState.currentUser.nickname || initialState.currentUser.email }
</span> </span>
</Dropdown> </Dropdown>
</div> </div>