From 6d241ce230c9253c79dbe6236f75e96f74e7f430 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Wed, 1 Nov 2023 23:23:40 +0700 Subject: [PATCH] Fix wrong logic --- src/components/auth/ProfileModal/ProfileModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/auth/ProfileModal/ProfileModal.tsx b/src/components/auth/ProfileModal/ProfileModal.tsx index def399006..164c9126c 100644 --- a/src/components/auth/ProfileModal/ProfileModal.tsx +++ b/src/components/auth/ProfileModal/ProfileModal.tsx @@ -315,6 +315,6 @@ function useHasPreviousGrillIdentity() { ) const { data: grillProfile } = getProfileQuery.useQuery(grillAddress ?? '') const hasPreviousIdentity = - grillAccountData?.evmAddress && grillProfile?.profileSpace?.content?.name + grillAccountData?.evmAddress || grillProfile?.profileSpace?.content?.name return !!hasPreviousIdentity }