Skip to content

Commit

Permalink
UI is not displaying gas set by dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri committed Dec 19, 2024
1 parent a1b41c4 commit b8d09f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/pages/confirmations/hooks/useGasFeeInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function useGasFeeInputs(
});

const [gasLimit, setGasLimit] = useState(() =>
Number(hexToDecimal(transaction?.txParams?.gas ?? '0x0')),
Number(hexToDecimal(transaction?.txParams?.gasLimit ?? '0x0')),
);

const properGasLimit = Number(hexToDecimal(transaction?.originalGasEstimate));
Expand Down Expand Up @@ -195,7 +195,9 @@ export function useGasFeeInputs(
setEstimateUsed(transaction?.userFeeLevel);
}

setGasLimit(Number(hexToDecimal(transaction?.txParams?.gas ?? '0x0')));
setGasLimit(
Number(hexToDecimal(transaction?.txParams?.gasLimit ?? '0x0')),
);
}
}, [
setEstimateUsed,
Expand Down

0 comments on commit b8d09f4

Please sign in to comment.