Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Fix: condition in tx simulation (#4006)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Jul 1, 2022
1 parent 9ffa01f commit 00aa763
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,10 @@ export const TxModalWrapper = ({
}

// is submitStatus is not ready we are not done with gas estimation / tx creation
if (submitStatus !== ButtonStatus.READY && txParameters.data) {
if (submitStatus !== ButtonStatus.READY || !txParameters.data) {
return ''
}

try {
// If a transaction is executable we simulate with the proposed / selected gasLimit and the actual signatures
// Otherwise we overwrite the threshold to 1 on tenderly and create a signature
Expand Down

0 comments on commit 00aa763

Please sign in to comment.