Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hot-fix] Update for testing (3)
Browse files Browse the repository at this point in the history
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
@@ -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
@@ -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]);

0 comments on commit c352fcd

Please sign in to comment.