mirror of
https://github.com/trezor/trezor-wallet
synced 2025-03-28 14:05:44 +00:00
quickfix: SendForm currency select value
This commit is contained in:
parent
89cc455536
commit
a9883727f3
@ -243,6 +243,7 @@ const AccountSend = (props: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const tokensSelectData = getTokensSelectData(tokens, network);
|
const tokensSelectData = getTokensSelectData(tokens, network);
|
||||||
|
const tokensSelectValue = tokensSelectData.find(t => t.value === currency)
|
||||||
const isAdvancedSettingsHidden = !advanced;
|
const isAdvancedSettingsHidden = !advanced;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -310,7 +311,7 @@ const AccountSend = (props: Props) => {
|
|||||||
key="currency"
|
key="currency"
|
||||||
isSearchable={false}
|
isSearchable={false}
|
||||||
isClearable={false}
|
isClearable={false}
|
||||||
defaultValue={tokensSelectData[0]}
|
value={tokensSelectValue}
|
||||||
isDisabled={tokensSelectData.length < 2}
|
isDisabled={tokensSelectData.length < 2}
|
||||||
onChange={onCurrencyChange}
|
onChange={onCurrencyChange}
|
||||||
options={tokensSelectData}
|
options={tokensSelectData}
|
||||||
|
Loading…
Reference in New Issue
Block a user