Skip to content

Commit

Permalink
Additional safety layer so we don't crash on names like ----.
Browse files Browse the repository at this point in the history
  • Loading branch information
zencephalon committed Aug 22, 2024
1 parent 7dd0ac8 commit ca5d96d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/utils/usernames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,11 @@ export const normalizeEnsDomainName = (name: string) => {
try {
return normalize(name);
} catch (error) {
return normalize(sanitizeEnsDomainName(name));
try {
return normalize(sanitizeEnsDomainName(name));
} catch (sanitizedError) {
return '';
}
}
};

Expand Down

0 comments on commit ca5d96d

Please sign in to comment.