fix: missing deadline in swaps stx status screen#25779
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. |
|
Builds ready [190ac46]
Page Load Metrics (74 ± 14 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25779 +/- ##
===========================================
- Coverage 69.96% 69.96% -0.00%
===========================================
Files 1405 1405
Lines 49000 49003 +3
Branches 13699 13701 +2
===========================================
Hits 34282 34282
- Misses 14718 14721 +3 ☔ View full report in Codecov by Sentry. |
dan437
left a comment
There was a problem hiding this comment.
Thanks for adding the fallback! One thing: this PR adds a fallback for the deadline, but it should use a value from backend in the first place. Can you check if the value from backend is being used?
| "swapsQuoteRefreshTime": 60000, | ||
| "swapsQuotePrefetchingRefreshTime": 60000, | ||
| "swapsStxBatchStatusRefreshTime": 10000, | ||
| "swapsStxStatusDeadline": "number", |
There was a problem hiding this comment.
Why is this a "number" string and not some exact number like other fallback values?
There was a problem hiding this comment.
The value wasn't being set up correctly in the test, but it is now 👍
Builds ready [596e722]
Page Load Metrics (72 ± 6 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [af3c138]
Page Load Metrics (78 ± 8 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@dan437 You were right - the fallback rather than the value from the PR was used. I pushed some updates and that is no longer the case. |
|
Builds ready [84ac8b4]
Page Load Metrics (66 ± 7 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|



Description
This PR fixes an issue where the STX status screen for a swap was showing a 0:00 for the timer.
Related issues
Related to: #25063
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2024-07-10.at.2.41.53.PM.mov
After
Screen.Recording.2024-07-11.at.1.28.53.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist