diff --git a/components/quests/task.tsx b/components/quests/task.tsx index 368e09e6..4da9885e 100644 --- a/components/quests/task.tsx +++ b/components/quests/task.tsx @@ -49,9 +49,8 @@ const Task: FunctionComponent = ({ }; // A verify function that setIsVerified(true) and stop propagation - const verify = async (e?: React.MouseEvent) => { + const verify = async () => { checkCanDoTask(); - if (e) e.stopPropagation(); setIsLoading(true); if (verifyEndpointType.startsWith("oauth")) { @@ -159,11 +158,12 @@ const Task: FunctionComponent = ({ ) : (
{ + e.stopPropagation(); if (!address) return setError("Please connect your wallet first"); if (!hasRootDomain) return setShowDomainPopup(true); if (verifyEndpointType === "quiz") return openTask(); if (verifyRedirect) window.open(verifyRedirect); - verify(e); + verify(); }} className={styles.verifyButton} >