From 956e48ed65c665ad15fdc95e2525bcd99df745a6 Mon Sep 17 00:00:00 2001 From: Nico <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Sun, 1 Dec 2024 12:17:45 +0100 Subject: [PATCH] disabling popup for karnot --- components/quests/questDetails.tsx | 1 + components/quests/task.tsx | 4 +++- types/frontTypes.d.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/quests/questDetails.tsx b/components/quests/questDetails.tsx index af418c0c..180f36d8 100644 --- a/components/quests/questDetails.tsx +++ b/components/quests/questDetails.tsx @@ -427,6 +427,7 @@ const QuestDetails: FunctionComponent = ({ hasRootDomain={quest.id === 127 ? true : hasRootDomain} setShowDomainPopup={setShowDomainPopup} checkUserRewards={checkUserRewards} + questId={questId} /> ); })} diff --git a/components/quests/task.tsx b/components/quests/task.tsx index 98d119dd..25b9ab63 100644 --- a/components/quests/task.tsx +++ b/components/quests/task.tsx @@ -33,6 +33,7 @@ const Task: FunctionComponent = ({ customError, expired, checkUserRewards, + questId, }) => { const [isClicked, setIsClicked] = useState(false); const [isVerified, setIsVerified] = useState(false); @@ -182,7 +183,8 @@ const Task: FunctionComponent = ({ onClick={(e) => { e.stopPropagation(); if (!address) return setError("Please connect your wallet first"); - if (!hasRootDomain) return setShowDomainPopup(true); + if (!hasRootDomain && questId !== "224") + return setShowDomainPopup(true); if (verifyEndpointType === "quiz") return openTask(); if (verifyRedirect) window.open(verifyRedirect); verify(); diff --git a/types/frontTypes.d.ts b/types/frontTypes.d.ts index ab8934d2..429f3f42 100644 --- a/types/frontTypes.d.ts +++ b/types/frontTypes.d.ts @@ -35,6 +35,7 @@ type Task = { customError: string; checkUserRewards?: () => void; expired: boolean; + questId?: string; }; type TaskProps = Task & { id: number };