mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-25 16:05:25 +00:00
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,
|
txConfirmations?: number,
|
||||||
txType?: string,
|
txType?: string,
|
||||||
): boolean => {
|
): boolean => {
|
||||||
if (threshold === 1 || sameString(txType, 'spendingLimit') || txConfirmations === threshold) {
|
if (
|
||||||
|
threshold === 1 ||
|
||||||
|
sameString(txType, 'spendingLimit') ||
|
||||||
|
(txConfirmations !== undefined && txConfirmations >= threshold)
|
||||||
|
) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user