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: Wait for token definitions in import #16614

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

vytick
Copy link
Contributor

@vytick vytick commented Jan 27, 2025

When importing account there was no await for token definitions which could cause fiat values not being shown in case fetch took too long.

This awaits token definitions to be downloaded and triggers fiat rates update to be fetched. So the fiat rates should load gradually once the import confirmation is shown.

@vytick vytick added the mobile Suite Lite issues and PRs label Jan 27, 2025
@vytick vytick requested a review from a team as a code owner January 27, 2025 11:24
Copy link

github-actions bot commented Jan 27, 2025

🚀 Expo preview is ready!

  • Project → trezor-suite-preview
  • Platforms → android, ios
  • Scheme → trezorsuitelite
  • Runtime Version → 23
  • More info

Learn more about 𝝠 Expo Github Action

Copy link
Contributor

@yanascz yanascz left a comment

Choose a reason for hiding this comment

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

I'd choose a different variable name instead of fetches, otherwise looks good.

@vytick vytick added no-project This label is used to specify that PR doesn't need to be added to a project and removed no-project This label is used to specify that PR doesn't need to be added to a project labels Jan 27, 2025
@vytick vytick changed the title fix: Wait for fiat rates and token definitions in import fix: Wait for token definitions in import Jan 27, 2025
@vytick vytick force-pushed the fix/native/imported-token-rates branch from 53e3612 to 36d00c9 Compare January 27, 2025 12:36
@vytick vytick merged commit 3c8b048 into develop Jan 27, 2025
16 checks passed
@vytick vytick deleted the fix/native/imported-token-rates branch January 27, 2025 13:07
@STew790
Copy link
Contributor

STew790 commented Jan 29, 2025

QA OK
Token definitions on import are OK both on iOS and Android (included only iOS screenshot though for better clarity)
ETH
image
POL
image
BSC
image
SOL
image

Info

25.1.3 9fd0808

@STew790 STew790 added the QA OK Issue passed QA without any blocker label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Suite Lite issues and PRs QA OK Issue passed QA without any blocker
Projects
Status: ✅ Approved
Development

Successfully merging this pull request may close these issues.

3 participants