Browse Source

Merge pull request #1102 from gre/fix/1099

Fixes #1099
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
5196e32d78
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      src/components/modals/Send/steps/01-step-amount.js

19
src/components/modals/Send/steps/01-step-amount.js

@ -45,6 +45,7 @@ export default ({
{account && {account &&
bridge && bridge &&
transaction && ( transaction && (
<Fragment key={account.id}>
<RecipientField <RecipientField
autoFocus={openedFromAccount} autoFocus={openedFromAccount}
account={account} account={account}
@ -53,38 +54,28 @@ export default ({
onChangeTransaction={onChangeTransaction} onChangeTransaction={onChangeTransaction}
t={t} t={t}
/> />
)}
{account &&
bridge &&
transaction && (
<AmountField <AmountField
key={account.id}
account={account} account={account}
bridge={bridge} bridge={bridge}
transaction={transaction} transaction={transaction}
onChangeTransaction={onChangeTransaction} onChangeTransaction={onChangeTransaction}
t={t} t={t}
/> />
)}
{account && {FeesField && (
bridge &&
transaction &&
FeesField && (
<FeesField account={account} value={transaction} onChange={onChangeTransaction} /> <FeesField account={account} value={transaction} onChange={onChangeTransaction} />
)} )}
{account && {AdvancedOptionsField && (
bridge &&
transaction &&
AdvancedOptionsField && (
<AdvancedOptionsField <AdvancedOptionsField
account={account} account={account}
value={transaction} value={transaction}
onChange={onChangeTransaction} onChange={onChangeTransaction}
/> />
)} )}
</Fragment>
)}
</Box> </Box>
) )
} }

Loading…
Cancel
Save