mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Fix failing test:unit pipeline (#13387)
* Fix failing test:unit pipeline * Correct check of gasLimit and properGasLimit in edit-gas-display Co-authored-by: Dan Miller <danjm.com@gmail.com>
This commit is contained in:
parent
022f0efcd7
commit
7b75b9e638
@ -110,7 +110,11 @@ export default function EditGasDisplay({
|
||||
);
|
||||
|
||||
let warningMessage;
|
||||
if (new BigNumber(gasLimit).lessThan(new BigNumber(properGasLimit))) {
|
||||
if (
|
||||
gasLimit !== undefined &&
|
||||
properGasLimit !== undefined &&
|
||||
new BigNumber(gasLimit).lessThan(new BigNumber(properGasLimit))
|
||||
) {
|
||||
warningMessage = t('gasLimitRecommended', [properGasLimit]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user