-
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)_: collectible route cleanup on navigating back from TX confirmation page #21883
Conversation
(->> ownership | ||
(some #(when (= address (:address %)) | ||
(:balance %))) | ||
utils.number/parse-int))) |
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.
Small refactoring of collectible balance util method based on #21871 (comment)
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.
The only changes on this screen are
- Removed the let var
on-close
as the navigate-back and clean-up events are separated - Removed the
fn
wrap as the functional compiler is the default - Moved the clean-up event to unmount (previously it was in a separate
let
var), as the event is not called when the user uses the device's back button/gesture.
to-address)} | ||
sign-on-keycard? (get-in transaction-for-signing | ||
[:signingDetails :signOnKeycard])] | ||
(hot-reload/use-safe-unmount #(rf/dispatch [:wallet/clean-route-data-for-collectible-tx])) |
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.
Clean up event on unmount
{:footer-container-padding 0 | ||
:header [quo/page-nav | ||
{:icon-name :i/arrow-left | ||
:on-press events-helper/navigate-back |
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.
Separated navigate back and clean up event (moved to unmount)
Jenkins BuildsClick to see older builds (8)
|
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!
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.
Nice stuff
dd81fda
to
c7dca3d
Compare
75% of end-end tests have passed
Expected to fail tests (2)Click to expandClass TestWalletMultipleDevice:
Passed tests (6)Click to expandClass TestCommunityOneDeviceMerged:
Class TestWalletOneDevice:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
Hi @smohamedjavid still reproducible on IOS if the following steps are performed: Steps:
Actual result:A "Context canceled" error and a "No routes found" message are displayed. context.mp4Device:iPhone 11 Pro Max, IOS 17 Logs: |
c7dca3d
to
3d7074b
Compare
@VolodLytvynenko - please retest 🙏 . It should be fixed now. |
75% of end-end tests have passed
Expected to fail tests (2)Click to expandClass TestWalletMultipleDevice:
Passed tests (6)Click to expandClass TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMerged:
Class TestWalletOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
@smohamedjavid Thank you for PR. No issues from my side. PR is ready to be merged |
Signed-off-by: Mohamed Javid <[email protected]>
… back button Signed-off-by: Mohamed Javid <[email protected]>
3d7074b
to
a78f3c7
Compare
fixes #21882
Summary
This PR fixes routes not cleaned properly (
Context Canceled
andNo Routes Found
errors thrown on generating the next route) when the user navigates back from the TX confirmation screen using the device's back button/gesture.Platforms
Steps to test
Prerequisite: A wallet account with multiple collectibles
Context Canceled
andNo Routes Found
error messages are not shownstatus: ready