You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TOOL-3689] Dashboard: Keep switch in disabled state if field value is empty in Sponsorship rules form (#6535)
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on improving the handling of various policy attributes in the `transformedQueryData` object within the `AccountAbstractionSettingsPage` component. The changes ensure that only non-empty values are included, addressing potential issues with null or empty arrays.
### Detailed summary
- Refactored `transformedQueryData` to filter out empty values from `allowedContractAddresses`, `allowedWallets`, `blockedWallets`, and `allowedChainIds`.
- Simplified conditionals for returning values by directly using filtered results.
- Updated the handling of `allowedChainIds` to default to an empty array instead of null.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
0 commit comments