Skip to content

fix: don't crash when ENS name fails ENSIP-15 normalization - #513

Open
mgrabina wants to merge 1 commit into
family:mainfrom
mgrabina:fix/guard-ens-name-normalization
Open

mgrabina wants to merge 1 commit into
family:mainfrom
mgrabina:fix/guard-ens-name-normalization

Conversation

@mgrabina

@mgrabina mgrabina commented Jul 21, 2026 •

Copy link
Copy Markdown

Avatar calls normalize(ensName ?? '') during render. If the connected wallet's reverse-resolved primary ENS name contains disallowed characters (real example: the zalgo-text name on 0xfb3c7eb936cAA12B5A884d612393969A557d4307), normalize throws and the consuming app's whole React tree unmounts with a white screen.

This guards the call and falls back to '', matching the existing behavior when no name resolves: the avatar query stays disabled and the fallback avatar renders. The raw name still displays.

Hit this in production on app.aave.com; we are shipping it as a patch-package patch in the meantime (aave/interface#3076).


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@mgrabina is attempting to deploy a commit to the Aave Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant