-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 balance display in account info signature request #13740
base: main
Are you sure you want to change the base?
fix: fix balance display in account info signature request #13740
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
useMultichainBalances: () => ({ | ||
multichainBalances: { | ||
isPortfolioVieEnabled: true, | ||
displayBalance: '$100', | ||
}, | ||
}), |
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.
It would've been nice to test using pure state (and let the hooks correctly fire), but this hook is really complex!
|
|
@@ -249,6 +257,14 @@ const Main = (props) => { | |||
if ( | |||
hasNetworkChanged(chainId, previousProviderConfig.current, isEvmSelected) | |||
) { | |||
//set here token network filter if portfolio view is enabled | |||
if (isPortfolioViewEnabled()) { |
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.
When a network is being switched within a dapp we need to set the correct tokenNetworkFilter so that the portfolio components returns the right aggregated balance.
Fixed! Android prod build: https://app.bitrise.io/build/2823e9a0-0af9-4606-a2b4-3b3988dcd15c?tab=artifacts fix_balance_dapp.mov![]() |
|
|
Description
PR to fix balance display in signature confirmation component.
It also fixes the balance display when the network is being switched within a dapp.
Related issues
Fixes: #13730
Fixes: #13727
Manual testing steps
Description of manual testing steps are included in reported issues
Screenshots/Recordings
Before
After
Screen.Recording.2025-02-26.at.19.09.10.mov
Screen.Recording.2025-02-27.at.10.49.26.mov
Pre-merge author checklist
Pre-merge reviewer checklist