Skip to content

Commit

Permalink
Merge pull request #73 from lets-fucking-game/dev
Browse files Browse the repository at this point in the history
fix: fixing loading component
  • Loading branch information
0xGeegZ committed Nov 27, 2022
2 parents e5bf7e0 + ba79666 commit 68800ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dapp/src/views/Games/Games.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ const Games: React.FC<React.PropsWithChildren> = ({ children }) => {
<FlexLayout>{children}</FlexLayout>
{/* )} */}

{userDataLoaded && !chosenGamesMemoized.length && isMyGames && (
{!chosenGamesMemoized.length && isMyGames && (
<FinishedTextContainer>
<Text fontSize={['16px', null, '20px']} color="failure" pr="4px">
{t("You haven't created any games yet")}
Expand All @@ -398,7 +398,7 @@ const Games: React.FC<React.PropsWithChildren> = ({ children }) => {
</Flex>
</FinishedTextContainer>
)}
{!userDataLoaded && (
{!chosenGamesMemoized.length && !userDataLoaded && (
<Flex justifyContent="center">
<Loading />
</Flex>
Expand Down

1 comment on commit 68800ba

@vercel
Copy link

@vercel vercel bot commented on 68800ba Nov 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.