From 107b8377c6cf3debfc78132222594fbeaf822eb9 Mon Sep 17 00:00:00 2001 From: imhson Date: Wed, 21 Feb 2024 10:18:12 +0700 Subject: [PATCH] update --- app/components/homeComponents/home.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */}