Skip to content

Commit b8e7bb9

Browse files
authored
fix: gas fee editing should not be hidden if user has disabled currency rate check (#22890)
1 parent 480a671 commit b8e7bb9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ui/pages/confirmations/components/gas-details-item/gas-details-item.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,19 @@ const GasDetailsItem = ({
102102
detailTitle={<Text>{t('estimatedFee')}</Text>}
103103
detailTitleColor={TextColor.textDefault}
104104
detailText={
105-
useCurrencyRateCheck &&
106105
Object.keys(draftTransaction).length === 0 && (
107106
<div className="gas-details-item__currency-container">
108107
<LoadingHeartBeat estimateUsed={estimateUsed} />
109108
<EditGasFeeIcon
110109
userAcknowledgedGasMissing={userAcknowledgedGasMissing}
111110
/>
112-
<UserPreferencedCurrencyDisplay
113-
type={SECONDARY}
114-
value={getTransactionFeeTotal}
115-
hideLabel={Boolean(useNativeCurrencyAsPrimaryCurrency)}
116-
/>
111+
{useCurrencyRateCheck && (
112+
<UserPreferencedCurrencyDisplay
113+
type={SECONDARY}
114+
value={getTransactionFeeTotal}
115+
hideLabel={Boolean(useNativeCurrencyAsPrimaryCurrency)}
116+
/>
117+
)}
117118
</div>
118119
)
119120
}

0 commit comments

Comments
 (0)