Skip to content

Commit

Permalink
disabling popup for karnot
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed Dec 1, 2024
1 parent 887471e commit 956e48e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/quests/questDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ const QuestDetails: FunctionComponent<QuestDetailsProps> = ({
hasRootDomain={quest.id === 127 ? true : hasRootDomain}
setShowDomainPopup={setShowDomainPopup}
checkUserRewards={checkUserRewards}
questId={questId}
/>
);
})}
Expand Down
4 changes: 3 additions & 1 deletion components/quests/task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const Task: FunctionComponent<Task> = ({
customError,
expired,
checkUserRewards,
questId,
}) => {
const [isClicked, setIsClicked] = useState(false);
const [isVerified, setIsVerified] = useState(false);
Expand Down Expand Up @@ -182,7 +183,8 @@ const Task: FunctionComponent<Task> = ({
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();
Expand Down
1 change: 1 addition & 0 deletions types/frontTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type Task = {
customError: string;
checkUserRewards?: () => void;
expired: boolean;
questId?: string;
};

type TaskProps = Task & { id: number };
Expand Down

0 comments on commit 956e48e

Please sign in to comment.