From 6097687be3e22be0a697b85d5997be09a450b92e Mon Sep 17 00:00:00 2001 From: Iris Date: Wed, 4 Oct 2023 18:08:53 +0200 Subject: [PATCH 1/2] fix: btn start achievement opening a browser window --- components/lands/land.tsx | 11 +++++++---- pages/quest/[questPage].tsx | 3 ++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/lands/land.tsx b/components/lands/land.tsx index f2d35be1..6ea77ff5 100644 --- a/components/lands/land.tsx +++ b/components/lands/land.tsx @@ -3,9 +3,10 @@ import { Scene } from "./scene"; import { memberSince } from "../../utils/profile"; import styles from "../../styles/profile.module.css"; import landStyles from "../../styles/components/land.module.css"; -import Button from "../UI/button"; +import btnStyles from "../../styles/components/button.module.css"; import { SoloBuildings, StarkFighterBuildings } from "../../constants/nft"; import { AchievementsDocument } from "../../types/backTypes"; +import Link from "next/link"; type LandProps = { address: string; @@ -172,9 +173,11 @@ export const Land = ({ {isOwner ? (
- + + +
) : null} diff --git a/pages/quest/[questPage].tsx b/pages/quest/[questPage].tsx index 6c9efc68..260325d4 100644 --- a/pages/quest/[questPage].tsx +++ b/pages/quest/[questPage].tsx @@ -46,7 +46,8 @@ const QuestPage: NextPage = () => { useEffect(() => { if (!address) return; - setShowDomainPopup(!hasRootDomain); + // setShowDomainPopup(!hasRootDomain); + setShowDomainPopup(false); }, [address, hasRootDomain]); // this fetches quest data From d84272a133b5e80a1e2117656d81eca83a907277 Mon Sep 17 00:00:00 2001 From: Iris Date: Wed, 4 Oct 2023 18:10:45 +0200 Subject: [PATCH 2/2] fix: remove comments --- pages/quest/[questPage].tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/quest/[questPage].tsx b/pages/quest/[questPage].tsx index 260325d4..6c9efc68 100644 --- a/pages/quest/[questPage].tsx +++ b/pages/quest/[questPage].tsx @@ -46,8 +46,7 @@ const QuestPage: NextPage = () => { useEffect(() => { if (!address) return; - // setShowDomainPopup(!hasRootDomain); - setShowDomainPopup(false); + setShowDomainPopup(!hasRootDomain); }, [address, hasRootDomain]); // this fetches quest data