1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-23 23:48:07 +00:00

quickfix: SendForm currency select value

This commit is contained in:
Szymon Lesisz 2018-10-18 13:28:35 +02:00
parent 89cc455536
commit a9883727f3

View File

@ -243,6 +243,7 @@ const AccountSend = (props: Props) => {
}
const tokensSelectData = getTokensSelectData(tokens, network);
const tokensSelectValue = tokensSelectData.find(t => t.value === currency)
const isAdvancedSettingsHidden = !advanced;
return (
@ -310,7 +311,7 @@ const AccountSend = (props: Props) => {
key="currency"
isSearchable={false}
isClearable={false}
defaultValue={tokensSelectData[0]}
value={tokensSelectValue}
isDisabled={tokensSelectData.length < 2}
onChange={onCurrencyChange}
options={tokensSelectData}