Skip to content

Commit

Permalink
move event back
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters committed Sep 19, 2024
1 parent 2ef6c98 commit 2cd8f20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wormhole-connect/src/views/v2/Redeem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,6 @@ const Redeem = () => {

let receipt: routes.Receipt | undefined;

config.triggerEvent({
type: 'transfer.redeem.start',
details: transferDetails,
});

if (isTxDestQueued && routes.isFinalizable(route)) {
receipt = await route.finalize(signer, routeContext.receipt);
} else if (!isTxDestQueued && routes.isManual(route)) {
Expand All @@ -465,6 +460,11 @@ const Redeem = () => {
txId = receipt.destinationTxs[receipt.destinationTxs.length - 1].txid;
}

config.triggerEvent({
type: 'transfer.redeem.start',
details: transferDetails,
});

setIsClaimInProgress(false);
setClaimError('');
} catch (e: any) {
Expand Down

0 comments on commit 2cd8f20

Please sign in to comment.