-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
refactor(ramp): skip adding order if already exists #8192
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #8192 +/- ##
==========================================
- Coverage 39.65% 39.64% -0.01%
==========================================
Files 1233 1233
Lines 29820 29822 +2
Branches 2840 2841 +1
==========================================
Hits 11824 11824
- Misses 17307 17309 +2
Partials 689 689 ☔ View full report in Codecov by Sentry. |
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0613a8d3-3f4e-40f8-95c0-1db1956224db |
@wachunei LGTM I finished testing buy and sell flows |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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
Description
This PR prevents double attempt to add order and a double navigation action when an order already exists in the state. The solution is to use a thunk that gets access to the state before dispatching the action that adds the order and calls the navigation.
Related issues
Fixes:
Manual testing steps
Completing the Buy & Sell flow must remain the same.
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist