diff --git a/app/components/homeComponents/home.tsx b/app/components/homeComponents/home.tsx index 4e2af4e..96fac1f 100644 --- a/app/components/homeComponents/home.tsx +++ b/app/components/homeComponents/home.tsx @@ -52,7 +52,7 @@ export default function HomePage() { } } } - if (!data) { + if (!data || !account?.refferal_code) { return (
{/* background */} @@ -64,7 +64,7 @@ export default function HomePage() { ) } - if (account && !account.code) { + if (account && !account.code && account.refferal_code?.length > 1) { return (
{/* background */}