Skip to content

Commit

Permalink
Merge pull request #509 from blockchain/bug/send-to-field
Browse files Browse the repository at this point in the history
send BTC/BCH to field
  • Loading branch information
sixtedemaupeou committed Jun 7, 2018
2 parents 5040e38 + 1f9c200 commit 8c1b632
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const FirstStep = props => {
<FormattedMessage id='modals.sendBch.firststep.to' defaultMessage='To:' />
</FormLabel>
<Row>
{toToggled && !destination && <Field name='to' component={SelectBoxBitcoinAddresses} opened includeAll={false} exclude={[from.label]} hideErrors coin='BCH' />}
{toToggled && !destination && <Field name='to' component={SelectBoxBitcoinAddresses} opened onFocus={() => handleToToggle()} includeAll={false} exclude={[from.label]} hideErrors coin='BCH' />}
{toToggled && destination && <Field name='to' component={SelectBoxBitcoinAddresses} onFocus={() => handleToToggle()} includeAll={false} validate={[required]} exclude={[from.label]} hideArrow hideErrors coin='BCH' />}
{!toToggled && <Field name='to' placeholder='Paste or scan an address, or select a destination' component={TextBox} validate={[required, validBitcoinCashAddress]} autoFocus />}
{(!toToggled || destination) && <QRCodeCapture scanType='bchAddress' border={enableToggle ? ['top', 'bottom'] : ['top', 'bottom', 'right']} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const FirstStep = props => {
<FormattedMessage id='modals.sendbtc.firststep.to' defaultMessage='To:' />
</FormLabel>
<Row>
{toToggled && !destination && <Field name='to' component={SelectBoxBitcoinAddresses} opened includeAll={false} exclude={[from.label]} hideErrors />}
{toToggled && !destination && <Field name='to' component={SelectBoxBitcoinAddresses} opened onFocus={() => handleToToggle()} includeAll={false} exclude={[from.label]} hideErrors />}
{toToggled && destination && <Field name='to' component={SelectBoxBitcoinAddresses} onFocus={() => handleToToggle()} includeAll={false} validate={[required]} exclude={[from.label]} hideArrow hideErrors />}
{!toToggled && <Field name='to' placeholder='Paste or scan an address, or select a destination' component={TextBox} validate={[required, validBitcoinAddress]} autoFocus />}
{(!toToggled || destination) && <QRCodeCapture scanType='btcAddress' border={enableToggle ? ['top', 'bottom'] : ['top', 'bottom', 'right']} />}
Expand Down

0 comments on commit 8c1b632

Please sign in to comment.