From acb1bbd68ec4beb1a5cb7afaeb39e38cff52b80b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=ABck=20V=C3=A9zien?= Date: Wed, 31 Jan 2018 18:21:50 +0100 Subject: [PATCH] Fix Select wallet component --- src/components/modals/AddAccount/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/modals/AddAccount/index.js b/src/components/modals/AddAccount/index.js index 00326463..6c210bf8 100644 --- a/src/components/modals/AddAccount/index.js +++ b/src/components/modals/AddAccount/index.js @@ -26,6 +26,13 @@ import Select from 'components/base/Select' import CreateAccount from './CreateAccount' import ImportAccounts from './ImportAccounts' +const currencies = [ + { + key: 'btc', + name: 'Bitcoin', + }, +] + const Steps = { chooseWallet: (props: Object) => (
@@ -36,12 +43,8 @@ const Steps = { placeholder="Choose a wallet..." onChange={item => props.onChangeInput('wallet')(item.key)} renderSelected={item => item.name} - items={[ - { - key: 'btc', - name: 'Bitcoin', - }, - ]} + items={currencies} + value={currencies.find(c => c.key === props.value.wallet)} />