fix: correct error message for clan tag length (BUG-07)#3946
Conversation
When a clan tag exceeds MAX_CLAN_TAG_LENGTH, the validation was returning 'tag_too_short' instead of 'tag_too_long'. Added the missing translation key and fixed the test.
WalkthroughThis PR fixes a validation bug where ChangesClan Tag Length Validation Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description:
The code was checking
clanTag.length > MAX_CLAN_TAG_LENGTHbut returning"tag_too_short". This fix corrects the error message to something more appropriate or ensures the logic matches the message.Fix: Corrected the error message key from
"tag_too_short"to"tag_too_long"when the length exceeds the maximum.Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
barfires