mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix 11709 - Always show fiat on mainnet (#11714)
This commit is contained in:
parent
9c0e34b264
commit
219b0f9bd6
@ -10,6 +10,7 @@ import {
|
||||
import Button from '../../ui/button';
|
||||
import Typography from '../../ui/typography/typography';
|
||||
import { isEIP1559Network } from '../../../ducks/metamask/metamask';
|
||||
import { getIsMainnet } from '../../../selectors';
|
||||
|
||||
import {
|
||||
COLORS,
|
||||
@ -64,6 +65,7 @@ export default function EditGasDisplay({
|
||||
}) {
|
||||
const t = useContext(I18nContext);
|
||||
const supportsEIP1559 = useSelector(isEIP1559Network);
|
||||
const isMainnet = useSelector(getIsMainnet);
|
||||
|
||||
const dappSuggestedAndTxParamGasFeesAreTheSame = areDappSuggestedAndTxParamGasFeesTheSame(
|
||||
transaction,
|
||||
@ -126,7 +128,7 @@ export default function EditGasDisplay({
|
||||
)}
|
||||
<TransactionTotalBanner
|
||||
total={
|
||||
networkSupports1559
|
||||
networkSupports1559 || isMainnet
|
||||
? `~ ${estimatedMinimumFiat}`
|
||||
: estimatedMaximumNative
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user