Browse Source

huge hack that fix the bug

master
Gaëtan Renaudeau 7 years ago
parent
commit
d3f9fe80e9
  1. 27
      src/components/modals/Send/01-step-amount.js

27
src/components/modals/Send/01-step-amount.js

@ -33,6 +33,33 @@ function StepAmount({
<Box flow={4}>
<AccountField t={t} onChange={onChangeAccount} value={account} />
{/* HACK HACK HACK WTF */}
<div hidden>
{account &&
bridge &&
transaction && (
<RecipientField
account={account}
bridge={bridge}
transaction={transaction}
onChangeTransaction={onChangeTransaction}
t={t}
/>
)}
{account &&
bridge &&
transaction && (
<AmountField
account={account}
bridge={bridge}
transaction={transaction}
onChangeTransaction={onChangeTransaction}
t={t}
/>
)}
</div>
{/* HACK HACK HACK WTF */}
{account && bridge && transaction ? (
<Fragment key={account.id}>
<RecipientField

Loading…
Cancel
Save