Add extra error state to EditUsernameModalBody

This commit is contained in:
Fedor Indutny
2024-02-21 11:00:29 -08:00
committed by GitHub
parent 47fd4125fe
commit e12b5fd0af
7 changed files with 16 additions and 5 deletions

View File

@@ -208,6 +208,9 @@ export function EditUsernameModalBody({
'icu:ProfileEditor--username--check-discriminator-leading-zero'
);
}
if (error === UsernameReservationError.TooManyAttempts) {
return i18n('icu:ProfileEditor--username--too-many-attempts');
}
// Displayed through confirmation modal below
if (
error === UsernameReservationError.General ||