Commit a9adbaf
committed
Dashboard: Fix login infinite loop on certain wallets (#6825)
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the `EnsureValidConnectedWalletLoginClient` component to ensure that wallet addresses are compared in a case-insensitive manner by using the `checksumAddress` function.
### Detailed summary
- Added import of `checksumAddress` from `thirdweb/utils`.
- Updated the conditional check to compare `connectedAddress` and `props.loggedInAddress` using `checksumAddress` for both values.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->1 parent dc2e514 commit a9adbaf
File tree
1 file changed
+5
-1
lines changed- apps/dashboard/src/app/(app)/components/EnsureValidConnectedWalletLogin
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
0 commit comments