getValue() now requires isValid()

This commit is contained in:
Ryan Barlow
2026-05-25 21:38:41 +01:00
parent e2be4aadce
commit b3699a9f5f
+2 -1
View File
@@ -42,7 +42,8 @@ export class ClanTagInput extends LitElement {
}
public getValue(): string | null {
return this.clanTag.length >= MIN_CLAN_TAG_LENGTH &&
return this.isValid() &&
this.clanTag.length >= MIN_CLAN_TAG_LENGTH &&
this.clanTag.length <= MAX_CLAN_TAG_LENGTH &&
validateClanTag(this.clanTag).isValid
? this.clanTag