-
Notifications
You must be signed in to change notification settings - Fork 987
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): token max value not updated when switching #21201
Conversation
Jenkins BuildsClick to see older builds (16)
|
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.
LGTM, just left a question.
cddf1f7
to
ffcbc9b
Compare
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.
Looks good 👍
Thank you for addressing these issues, the send flow is very important for the wallet 👍
57% of end-end tests have passed
Failed tests (3)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletMultipleDevice:
Class TestCommunityMultipleDeviceMerged:
Passed tests (4)Click to expandClass TestCommunityOneDeviceMerged:
Class TestWalletMultipleDevice:
Class TestWalletOneDevice:
|
ffcbc9b
to
c0e0c67
Compare
86% of end-end tests have passed
Failed tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (6)Click to expandClass TestWalletOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMerged:
Class TestWalletMultipleDevice:
|
Hey @smohamedjavid, the original issue is fixed, but there are some additional cases where the max value isn't updated. Could you address these within this PR, or would it be better to handle them separately?
max.mp4 |
c0e0c67
to
5ae0150
Compare
@VolodLytvynenko - Thank you for testing the PR 🙏 |
100% of end-end tests have passed
Passed tests (7)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletMultipleDevice:
Class TestCommunityOneDeviceMerged:
Class TestWalletOneDevice:
|
@smohamedjavid Thank you for fixes. Take a look please one more found issue ISSUE 2: Max value is updated incorrectly when the balance is shown in fiat and any network is disabledSteps:
Actual result:The max value is not updated correctly when the balance is displayed in fiat after disabling a network. This causes the entered value to be highlighted in red, indicating that the user doesn't have enough assets to rebuild the route for another enabled networks. (Example my user has:
But after disabling any network, the max value = 1.22 usd) switch_currency.mp4Expected result:The max value should be updated accurately based on the available balance after any network is disabled/enabled. |
5ae0150
to
b8d46ae
Compare
@VolodLytvynenko - Issue 2 should be fixed now 🙏 . Please check. |
0% of end-end tests have passed
Failed tests (7)Click to expandClass TestCommunityOneDeviceMerged:
Class TestWalletMultipleDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Class TestWalletOneDevice:
|
@smohamedjavid Thank you for the PR. No issues from my side, but I did notice one more place where the max value isn’t updated after the account is changed. If it's better to fix this separately, then the PR can be merged. ISSUE 3: Max value is not updated when the account is switched on the swap pageSteps:
Actual result:The max value is not updated to reflect the balance of the newly switched account. maxswap.mp4Expected result:The max value should update immediately when the account is switched, reflecting the correct token balance of the new account. Devices:Pixel 7a, Android 13 |
Signed-off-by: Mohamed Javid <[email protected]>
…disabling networks Signed-off-by: Mohamed Javid <[email protected]>
Sure @VolodLytvynenko, we will fix it separately 👍 Thank you for testing the PR 🙏 |
b8d46ae
to
62384ce
Compare
fixes #21184
Summary
This PR fixes the max value that is not updated when the user switches the token in the input amount screen
Platforms
Steps to test
Prerequisites: User with multiple tokens (balance > 0)
send > select assets
status: ready