-
Notifications
You must be signed in to change notification settings - Fork 5k
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: Cannot destructure property 'balance' of 'K[Z]' as it is undefined
fromAddress error when no transaction is loaded in ConfirmTransactionBase
#25506
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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25506 +/- ##
===========================================
- Coverage 69.69% 69.68% -0.00%
===========================================
Files 1350 1350
Lines 47865 47867 +2
Branches 13199 13201 +2
===========================================
+ Hits 33355 33356 +1
- Misses 14510 14511 +1 ☔ View full report in Codecov by Sentry. |
Builds ready [2667021]
Page Load Metrics (135 ± 167 ms)
Bundle size diffs
|
ui/pages/confirmations/confirm-transaction-base/confirm-transaction-base.container.js
Outdated
Show resolved
Hide resolved
@digiwand
swapSign.movError also doesn't appear for this scenario, Connect request is lost, instead of blue numbers there is '...' on the MM icon.
Screen.Recording.2024-06-25.at.16.26.35.movError also doesn't happen for these steps:
|
Great catch @sleepytanya! Q: were you able to repro the bug on the |
@sleepytanya I have repro'd the issue on |
@digiwand @darkwing @bschorchit |
Builds ready [99d49c8]
Page Load Metrics (279 ± 316 ms)
Bundle size diffs
|
This reverts commit 75690dd.
Builds ready [e422925]
Page Load Metrics (52 ± 4 ms)
Bundle size diffs
|
Description
In
confirm-transaction-base.container.js
, while the transaction is switching, the component may be in a state without transaction data. In this case, we can handle the empty transaction data appropriately until the expected data comes in to allow the user flow to continue without breaking.note: I was unable to reproduce this in
develop
after some time, but I successfully repro'd this inVersion-v12.0.0
which allowed me to verify the fix works. Possibly the underlying empty transaction data state was fixed by other code indevelop
This PR is planned to be cherry-picked for Version-v12.0.0
Related issues
Fixes: #25406
Manual testing steps
See Issue for repro steps
Screenshots/Recordings
Possible, occasional state in
confirm-transaction-base.container.js
Before
See error in Issue screenshots
After
No error message is shown and app works as expected
Pre-merge author checklist
Pre-merge reviewer checklist