fix isExecute in useEstimateTransactionGas (#1981)
* fix isExecute in useEstimateTransactionGas Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
This commit is contained in:
parent
5fddc1015e
commit
7cee0a4fe4
|
@ -39,7 +39,11 @@ export const checkIfTxIsExecution = (
|
|||
txConfirmations?: number,
|
||||
txType?: string,
|
||||
): boolean => {
|
||||
if (threshold === 1 || sameString(txType, 'spendingLimit') || txConfirmations === threshold) {
|
||||
if (
|
||||
threshold === 1 ||
|
||||
sameString(txType, 'spendingLimit') ||
|
||||
(txConfirmations !== undefined && txConfirmations >= threshold)
|
||||
) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue