From b761bf876e6d536b613dc6c3f1c59bd7cc5e7333 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 31 Mar 2021 09:30:09 +0800 Subject: [PATCH] fix: show email when nickname is empty --- packages/app/src/components/pages/AvatarDropdown/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/components/pages/AvatarDropdown/index.tsx b/packages/app/src/components/pages/AvatarDropdown/index.tsx index bfa4ea00e..7c37debc6 100644 --- a/packages/app/src/components/pages/AvatarDropdown/index.tsx +++ b/packages/app/src/components/pages/AvatarDropdown/index.tsx @@ -58,7 +58,7 @@ export default (props: any) => { icon={} style={{ marginRight: 5 }} />{' '} - {initialState.currentUser.nickname} + { initialState.currentUser.nickname || initialState.currentUser.email }