Skip to content

Commit

Permalink
errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0xk0stas committed Oct 12, 2023
1 parent 9afb828 commit 9569737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/views/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Home = () => {
const {userInfo, isLoadingUserInfo, errorUserInfo} = useGetUserInfo(email, platform);

let userExists = false;
if (!isLoadingUserInfo && session && userInfo?.username != "" && userInfo?.address != null) {
if (!isLoadingUserInfo && session && userInfo?.address != null) {
userExists = true;
}

Expand All @@ -37,7 +37,7 @@ const Home = () => {
Sign Out
</Button>
{userExists ?
<ExistingUser username={userInfo?.username || ""} address={userInfo?.address || ""} secretWords={userInfo?.secretWords || []}/>
<ExistingUser address={userInfo?.address || ""} secretWords={userInfo?.secretWords || []}/>
:
<NewUserForm email={email} platform={platform}/>
}
Expand Down
3 changes: 0 additions & 3 deletions src/views/Home/components/ExistingUser/ExistingUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ function ExistingUser(userInfo: IScUserInfo) {
<ChakraProvider theme={theme}>
<CSSReset />
<Container maxW={'800px'}>
<Text>
<b>Username:</b> {userInfo.username}
</Text>
<Text>
<b>Address:</b> {userInfo.address}
</Text>
Expand Down

0 comments on commit 9569737

Please sign in to comment.