mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-17 21:48:48 +00:00
fix localized value for xrp fee select
This commit is contained in:
parent
b58cff72ff
commit
9a083dff87
@ -415,7 +415,7 @@ export const getFeeLevels = (
|
|||||||
// map BlockchainFeeLevel to SendFormReducer FeeLevel
|
// map BlockchainFeeLevel to SendFormReducer FeeLevel
|
||||||
const levels = feeLevels.map(level => ({
|
const levels = feeLevels.map(level => ({
|
||||||
value: level.name,
|
value: level.name,
|
||||||
localizedValue: l10nFeeMap[level.value] || level.value,
|
localizedValue: l10nFeeMap[level.value],
|
||||||
fee: level.value,
|
fee: level.value,
|
||||||
label: `${toDecimalAmount(level.value, network.decimals)} ${network.symbol}`,
|
label: `${toDecimalAmount(level.value, network.decimals)} ${network.symbol}`,
|
||||||
}));
|
}));
|
||||||
|
@ -445,7 +445,13 @@ const AccountSend = (props: Props) => {
|
|||||||
options={feeLevels}
|
options={feeLevels}
|
||||||
formatOptionLabel={option => (
|
formatOptionLabel={option => (
|
||||||
<FeeOptionWrapper>
|
<FeeOptionWrapper>
|
||||||
<OptionValue>{option.value}</OptionValue>
|
<OptionValue>
|
||||||
|
{option.localizedValue ? (
|
||||||
|
<FormattedMessage {...option.localizedValue} />
|
||||||
|
) : (
|
||||||
|
option.value
|
||||||
|
)}
|
||||||
|
</OptionValue>
|
||||||
<OptionLabel>{option.label}</OptionLabel>
|
<OptionLabel>{option.label}</OptionLabel>
|
||||||
</FeeOptionWrapper>
|
</FeeOptionWrapper>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user