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(wallet-api): avoid caching listCurrencies result too early [LIVE-13205] #7230

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

Justkant
Copy link
Contributor

@Justkant Justkant commented Jun 28, 2024

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests. I tried to edit the test to cover this case but the currency won't load in the test env while I tested manually in multiple ways and it always work with the current changes
  • Impact of the changes:
    • discover
    • buy/sell
    • card
    • on all it's the listing of currencies and tokens that is affected

📝 Description

Fix some tokens not showing in the wallet-api because we cached the listCurrencies at the start of the app and apparently some info are not yet available at that time

But we still have an issue if no accounts is present for a parent family no tokens will be loaded and present in our currency.list

Before After
Screenshot 2024-06-28 at 19 10 33 Screenshot 2024-06-28 at 19 11 55

❓ 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)

@Justkant Justkant self-assigned this Jun 28, 2024
Copy link

vercel bot commented Jun 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Jul 2, 2024 7:34am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Jul 2, 2024 7:34am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jul 2, 2024 7:34am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jul 2, 2024 7:34am
web-tools ⬜️ Ignored (Inspect) Visit Preview Jul 2, 2024 7:34am

@Justkant Justkant marked this pull request as ready for review June 28, 2024 17:12
@Justkant Justkant requested review from a team as code owners June 28, 2024 17:12
@live-github-bot live-github-bot bot added desktop Has changes in LLD common Has changes in live-common labels Jun 28, 2024
Wozacosta
Wozacosta previously approved these changes Jun 28, 2024
}

if (!currencyList[0]) {
tracking.requestAccountFail(manifest);
Copy link
Contributor

Choose a reason for hiding this comment

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

Was that error tracking useless (since its being removed)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep

@KVNLS KVNLS merged commit c37944f into develop Jul 3, 2024
55 of 60 checks passed
@KVNLS KVNLS deleted the bugfix/LIVE-13205 branch July 3, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants