Skip to content

Commit

Permalink
[Hot-fix] Update for testing (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Dec 5, 2024
1 parent a873580 commit c352fcd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ const Component: React.FC<Props> = (props: Props) => {
return;
}

setIsLoading(true); // Hot fix minting loading problems

const transaction = await odysseyMintNft({ address, chain: 'storyOdyssey_testnet', signature });

// account has insufficient balance
Expand Down Expand Up @@ -481,12 +483,11 @@ const Component: React.FC<Props> = (props: Props) => {
setIsLoading(false);
} else if (mintingLog?.status === 'minting') {
mintingFlag.current = true;
setIsLoading(true);
} else if (mintingLog?.status === 'submitted') {
mintingFlag.current = true;
setIsLoading(true);
} else if (mintingLog?.status === 'failed') {
setIsLoading(false);
mintingFlag.current && setIsLoading(false);
mintingFlag.current && handleFailedToMintModal().then(goHome).catch(console.error);
}
}, [goHome, handleFailedToMintModal, mintingLog, onSuccess]);
Expand Down

0 comments on commit c352fcd

Please sign in to comment.