Skip to content

Commit

Permalink
[Hot-fix] Update minting date and fix some small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Dec 5, 2024
1 parent e5047e6 commit 5364304
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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 @@ -479,11 +481,13 @@ const Component: React.FC<Props> = (props: Props) => {
if (mintingLog?.status === 'success') {
onSuccess(mintingLog.address);
setIsLoading(false);
} else if (mintingLog?.status === 'submitted' || mintingLog?.status === 'minting') {
} else if (mintingLog?.status === 'minting') {
mintingFlag.current = 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
2 changes: 1 addition & 1 deletion packages/extension-koni-ui/src/connector/booka/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ export class BookaSdk {
// method: string;
// raffle_count: number;
start: getUCTPlus7('2024-12-02 07:00'),
end: getUCTPlus7('2024-12-07 10:00'),
end: getUCTPlus7('2024-12-09 10:00'),
conditionDescription: '',
share: {
url_share: 'https://x.koni.studio/mint-badge',
Expand Down

0 comments on commit 5364304

Please sign in to comment.