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