Skip to content

Commit

Permalink
Merge pull request #22 from dm3-org/ens-validation-fix
Browse files Browse the repository at this point in the history
Ens validation fix
  • Loading branch information
malteish authored Aug 8, 2024
2 parents 236d270 + 69abbd5 commit eae4426
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/ensUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ export const validateEns = (ens: string, setEnsError?: Function): boolean => {
result = false;
}

if (
!ens.includes('.') ||
!ens.endsWith('.eth') ||
ens.split('.')[0].length < 3
) {
if (!ens.includes('.') || !ens.endsWith('.eth')) {
result = false;
}

Expand Down

0 comments on commit eae4426

Please sign in to comment.