Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Feb 21, 2024
1 parent 6b65e77 commit 107b837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/homeComponents/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function HomePage() {
}
}
}
if (!data) {
if (!data || !account?.refferal_code) {
return (
<main className='relative min-h-screen'>
{/* background */}
Expand All @@ -64,7 +64,7 @@ export default function HomePage() {
)
}

if (account && !account.code) {
if (account && !account.code && account.refferal_code?.length > 1) {
return (
<main className='relative min-h-screen'>
{/* background */}
Expand Down

0 comments on commit 107b837

Please sign in to comment.