Skip to content

Commit

Permalink
Merge pull request #14 from zCloak-Network/feat-mint-sbt
Browse files Browse the repository at this point in the history
fix: lint
  • Loading branch information
tower1229 authored Feb 29, 2024
2 parents 3acbf5a + 4f82156 commit 5533068
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/game/_components/NetworkSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const NetworkSwitch = () => {
{chain?.name ? (
<div
className=" rounded-box cursor-pointer flex font-semibold bg-[#d9eafe] h-[30px] text-sm px-4 text-[#4296fc] z-50 relative items-center hover:opacity-80"
onClick={() => open({ view: "Networks" })}
onClick={() => void open({ view: "Networks" })}
>
<svg
fill="currentColor"
Expand Down
7 changes: 4 additions & 3 deletions src/pages/game/_utils/useSolana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default function useSolana() {
);
const { network } = useStateStore();

// eslint-disable-next-line react-hooks/exhaustive-deps
const PROGRAM_ID = new PublicKey(
"EfMghMxfMJUBh51G3u4JJGB2v1wFCHYCsBFo8Lz8QhJW"
);
Expand All @@ -23,7 +24,7 @@ export default function useSolana() {
}
);
}
}, [publicKey]);
}, [PROGRAM_ID, publicKey]);

const [isPending, setIsPending] = useState(false);
const [isSuccess, setSuccess] = useState(false);
Expand Down Expand Up @@ -62,11 +63,11 @@ export default function useSolana() {
setSuccess(false);
console.warn("No verifying account");
}
}, [verifyingAccount]);
}, [connection, isPending, network, verifyingAccount]);

useEffect(() => {
verifyingAccount && connection && refetch();
}, [connection, verifyingAccount]);
}, [connection, refetch, verifyingAccount]);

return {
publicKey,
Expand Down

0 comments on commit 5533068

Please sign in to comment.