-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: issue with 'dappIconUrl' in 'AccountConnect.ts' #8887
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 @@
## main #8887 +/- ##
=======================================
Coverage 43.23% 43.23%
=======================================
Files 1271 1271
Lines 30905 30905
Branches 3088 3088
=======================================
Hits 13361 13361
Misses 16769 16769
Partials 775 775 ☔ View full report in Codecov by Sentry. |
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
…ction-AccountConnect
|
Description
This PR addresses a bug in the
AccountConnect.tsx
file where an unhandled exception occurs if there are no accounts connected to a dApp.The issue arises on line 105 due to attempting to access the icon property of originatorInfo on an undefined sdkConnection.
The proposed fix safely accesses originatorInfo by adding an optional chaining operator before originatorInfo, ensuring that the code gracefully handles scenarios where
sdkConnection
might be undefined.Screen.Recording.2024-03-08.at.14.06.10.mov
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist