From a9883727f360760bb1f502aa7d2bb22a81008c8f Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Thu, 18 Oct 2018 13:28:35 +0200 Subject: [PATCH] quickfix: SendForm currency select value --- src/views/Wallet/views/Account/Send/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/Wallet/views/Account/Send/index.js b/src/views/Wallet/views/Account/Send/index.js index 0f1a726b..80e01ed5 100644 --- a/src/views/Wallet/views/Account/Send/index.js +++ b/src/views/Wallet/views/Account/Send/index.js @@ -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}