-
Notifications
You must be signed in to change notification settings - Fork 159
fix: hide couldnt load balances msg when balances are loading #6779
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
base: develop
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughThe PR integrates balance loading state tracking into trade form validation to prevent false "Couldn't load balances" errors during the asset balance fetching phase. It adds an Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2025-10-10T20:28:16.565ZApplied to files:
📚 Learning: 2025-10-13T19:41:31.440ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| } | ||
|
|
||
| if (!canPlaceOrderWithoutBalance) { | ||
| if (!canPlaceOrderWithoutBalance && !isBalancesLoading) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should add another TradeFormValidation state and display Fetching balances <Loader/>?
Summary
Fixes #4127
The issue was that the form validation was not taking into account the
isBalancesLoadingstate.To Test
As per the issue:
Connect to a wallet (using WC or open the app inside Safe --> most likely you will immediately reproduce the issue)
AR: each time when app is loading after changing a network/connection, 'Couldn't load balances' message appears and is displayed up to 20 seconds
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.