Skip to content

Commit

Permalink
fix(send): making the exclude from send empty array if from is not pr…
Browse files Browse the repository at this point in the history
…esent
  • Loading branch information
pedroapfilho committed Apr 16, 2021
1 parent 021792f commit 10551cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const FirstStep = props => {
<Field
component={SelectBoxBchAddresses}
dataE2e='sendBchAddressInput'
exclude={[from.label]}
exclude={from ? [from.label] : []}
excludeImported={isFromCustody}
includeAll={false}
includeExchangeAddress={!isFromCustody}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const FirstStep = props => {
<Field
component={SelectBoxBtcAddresses}
dataE2e='sendBtcAddressInput'
exclude={[from.label]}
exclude={from ? [from.label] : []}
excludeImported={isFromCustody}
includeAll={false}
includeExchangeAddress={!isFromCustody}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const FirstStep = props => {
component={SelectBoxEthAddresses}
dataE2e='sendEthAddressInput'
disabled={isRetryAttempt}
exclude={[from.label]}
exclude={from ? [from.label] : []}
includeAll={false}
includeExchangeAddress={!isFromCustody}
isCreatable={!isFromCustody}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const FirstStep = props => {
<Field
component={SelectBoxXlmAddresses}
dataE2e='sendXlmAddressInput'
exclude={[from.label]}
exclude={from ? [from.label] : []}
includeAll={false}
includeExchangeAddress={!isFromCustody}
isCreatable={!isFromCustody}
Expand Down

0 comments on commit 10551cc

Please sign in to comment.