Skip to content

Commit

Permalink
fix: correct handling of swap with disabled broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
kallen-ledger committed Sep 27, 2024
1 parent 3d2a9b7 commit e148f27
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,8 @@ const Body = ({ data, onClose }: { data: Data; onClose?: () => void | undefined
if (getEnv("DISABLE_TRANSACTION_BROADCAST")) {
if (!isSwapTransaction || (isSwapTransaction && !isDemo3Enabled)) {
onCancel(new DisabledTransactionBroadcastError());
return onClose?.();
} else {
return handleTransactionResult(result, operation);
}
return handleTransactionResult(result, operation);
}

if (isSwapTransaction) {
Expand Down

0 comments on commit e148f27

Please sign in to comment.