diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index f00a10f6a..a6e5d5ac2 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -167,7 +167,7 @@ "message": "Advanced" }, "advancedBaseGasFeeToolTip": { - "message": "Any difference between your max base fee and the current base fee will be refunded after completion." + "message": "When your transaction gets included in the block, any difference between your max base fee and the actual base fee will be refunded. Total amount is calculated as max base fee (in GWEI) * gas limit." }, "advancedGasFeeModalTitle": { "message": "Advanced gas fee" diff --git a/ui/components/app/advanced-gas-fee-popover/advanced-gas-fee-inputs/base-fee-input/base-fee-input.js b/ui/components/app/advanced-gas-fee-popover/advanced-gas-fee-inputs/base-fee-input/base-fee-input.js index 1e7739bf3..194db3026 100644 --- a/ui/components/app/advanced-gas-fee-popover/advanced-gas-fee-inputs/base-fee-input/base-fee-input.js +++ b/ui/components/app/advanced-gas-fee-popover/advanced-gas-fee-inputs/base-fee-input/base-fee-input.js @@ -137,11 +137,7 @@ const BaseFeeInput = () => { } value={editingInGwei ? maxBaseFeeGWEI : maxBaseFeeMultiplier} - detailText={ - editingInGwei - ? `${maxBaseFeeMultiplier}x ${`≈ ${baseFeeInFiat}`}` - : `${maxBaseFeeGWEI} GWEI ${`≈ ${baseFeeInFiat}`}` - } + detailText={`≈ ${baseFeeInFiat}`} numeric /> { describe('EditGasFeePopover', () => { it('should renders low / medium / high options', () => { - render(); + render({ dappSuggestedGasFees: {} }); expect(screen.queryByText('🐢')).toBeInTheDocument(); expect(screen.queryByText('🦊')).toBeInTheDocument(); diff --git a/ui/components/app/edit-gas-fee-popover/edit-gas-item/edit-gas-item.js b/ui/components/app/edit-gas-fee-popover/edit-gas-item/edit-gas-item.js index 0aac305ca..0b1a2a814 100644 --- a/ui/components/app/edit-gas-fee-popover/edit-gas-item/edit-gas-item.js +++ b/ui/components/app/edit-gas-fee-popover/edit-gas-item/edit-gas-item.js @@ -97,18 +97,18 @@ const EditGasItem = ({ priorityLevel }) => { } }; + if ( + priorityLevel === PRIORITY_LEVELS.DAPP_SUGGESTED && + !dappSuggestedGasFees + ) { + return null; + } + return ( - {estimateUsed === 'custom' && onEdit && ( - )}