Skip to content

Commit

Permalink
Simplify a condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dan437 committed Jun 19, 2024
1 parent 741ff57 commit df09d84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/scripts/lib/transaction/smart-transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ class SmartTransactionHook {

async submit() {
const isUnsupportedTransactionTypeForSmartTransaction =
this.#transactionMeta.type &&
[TransactionType.swapAndSend].includes(this.#transactionMeta.type);
this.#transactionMeta?.type === TransactionType.swapAndSend;

// Will cause TransactionController to publish to the RPC provider as normal.
const useRegularTransactionSubmit = { transactionHash: undefined };
Expand Down

0 comments on commit df09d84

Please sign in to comment.