Skip to content

Commit

Permalink
Fix currencyWallets reference in create wallet paths
Browse files Browse the repository at this point in the history
  • Loading branch information
peachbits committed Oct 30, 2024
1 parent 152be12 commit 6f86930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- fixed: Normalized error messages for tracking; removing localization from error messages.
- fixed: Sentry tagging and metadata data wasn't formed properly and caused some loss of tracked errors.
- fixed: Use Sentry context for logging metadata in `EdgeCrashEvent`
- fixed: Fix `currencyWallets` object reference in deep link paths that support wallet creation
- removed: Bank Wire Transfer Buy for Florida
- removed: Paypal Sell for Canada
- removed: Moonpay, Simplex, and Paybis for UK
Expand Down
4 changes: 2 additions & 2 deletions src/actions/DeepLinkingActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async function handleLink(navigation: NavigationBase, dispatch: Dispatch, state:
showCreateWallet: true
})
if (result?.type !== 'wallet') break
const wallet = currencyWallets[result.walletId]
const wallet = account.currencyWallets[result.walletId]
if (wallet == null) break

if (checkAndShowLightBackupModal(account, navigation)) break
Expand Down Expand Up @@ -250,7 +250,7 @@ async function handleLink(navigation: NavigationBase, dispatch: Dispatch, state:
showCreateWallet: true
})
if (result?.type !== 'wallet') break
const wallet = currencyWallets[result.walletId]
const wallet = account.currencyWallets[result.walletId]
if (wallet == null) break

// Re-parse the uri with the final chosen wallet
Expand Down

0 comments on commit 6f86930

Please sign in to comment.