Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
poll fix
Browse files Browse the repository at this point in the history
  • Loading branch information
intergalacticspacehighway committed Oct 13, 2023
1 parent 855f9f4 commit e1049ee
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/app/components/creator-token/self-serve-explainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { useEffect } from "react";

import { Avatar } from "@showtime-xyz/universal.avatar";
import { Button } from "@showtime-xyz/universal.button";
import { useIsDarkMode } from "@showtime-xyz/universal.hooks";
Expand Down Expand Up @@ -32,10 +30,6 @@ export const SelfServeExplainer = () => {
},
});

useEffect(() => {
creatorTokenDeployStatus.pollDeployStatus();
}, [creatorTokenDeployStatus]);

console.log("creatorTokenDeployStatus", creatorTokenDeployStatus.status);

return (
Expand Down Expand Up @@ -92,8 +86,9 @@ export const SelfServeExplainer = () => {
size="regular"
tw="w-full"
disabled={creatorTokenDeployStatus.status === "loading"}
onPress={() => {
deployContract();
onPress={async () => {
await deployContract();
creatorTokenDeployStatus.pollDeployStatus();
}}
>
<>
Expand Down

0 comments on commit e1049ee

Please sign in to comment.