Skip to content

Commit

Permalink
fix(dex): check wallet before getting address
Browse files Browse the repository at this point in the history
  • Loading branch information
mvashchuk-bc committed Dec 22, 2022
1 parent e94e54c commit 055f443
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ export default ({ api }: { api: APIType }) => {
})
)

const walletAddress = nonCustodialCoinAccounts[token][0].address
const walletAddress = nonCustodialCoinAccounts[token]?.[0].address
if (!walletAddress) {
yield* put(A.fetchUserEligibilityFailure('No user wallet address'))
}
Expand Down

0 comments on commit 055f443

Please sign in to comment.