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: πŸ› Fix Blank account screen when removing account from LLD when LS activated #7826

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

mcayuelas-ledger
Copy link
Contributor

@mcayuelas-ledger mcayuelas-ledger commented Sep 17, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Fix Blank account screen when removing account from LLD when LS activated

Screen.Recording.2024-09-17.at.11.59.02.mov

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@mcayuelas-ledger mcayuelas-ledger requested a review from a team as a code owner September 17, 2024 09:59
Copy link

vercel bot commented Sep 17, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Sep 17, 2024 9:59am
ledger-live-github-bot ⬜️ Ignored (Inspect) Sep 17, 2024 9:59am
native-ui-storybook ⬜️ Ignored (Inspect) Sep 17, 2024 9:59am
react-ui-storybook ⬜️ Ignored (Inspect) Sep 17, 2024 9:59am
web-tools ⬜️ Ignored (Inspect) Sep 17, 2024 9:59am

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Sep 17, 2024
},
});
}
}, [account, navigation]);
if (!account) return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

question: would you keep this ligne while you already navigate to another screen (so this component will explicitly unmount) in the useEffect ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Type 'AccountLike | undefined' is not assignable to type 'AccountLike'. Type 'undefined' is not assignable to type 'AccountLike'.

if I remove it

@mcayuelas-ledger mcayuelas-ledger merged commit cbac385 into develop Sep 18, 2024
43 of 45 checks passed
@mcayuelas-ledger mcayuelas-ledger deleted the bugfix/llm-no-account branch September 18, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants