Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(suite): when switching the device, make sure that the correspondi… #17609

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

vojtatranta
Copy link
Contributor

@vojtatranta vojtatranta commented Mar 12, 2025

…ng account exists on the other device wallet

Description

When you are in a device / wallet on /btc/4/ account and you switch to a different device / wallet that doesn't have /btc/4 but like just 1 btc account, it ended up in "Accout not found".

In this PR, I first check if that account existss

Related Issue

Resolve #4465

Screenshots:

…ng account exists on the other device wallet
@vojtatranta vojtatranta force-pushed the 4465-wrongly-selected-account branch from 425190e to ca9541e Compare March 12, 2025 14:49
// has a corresponding account in the next device accounts
// if not, enforce switching URL to dashboard
const nextAccount = nextDeviceAccounts.find(
account =>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this correct way of finding "correspoding" accout to switch to?

`${DEVICE_MODULE_PREFIX}/redirectAfterWalletSelectedThunk`,
async (_, { dispatch }) => {
async ({ forceDeviceDashboard }, { dispatch }) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This thunk was written by @seibei-iguchi I am not sure what it was suppose to do though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, in some cases, it went to dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Account does not exist often displayed in Suite
1 participant