Add extra error state to EditUsernameModalBody
This commit is contained in:
parent
47fd4125fe
commit
e12b5fd0af
7 changed files with 16 additions and 5 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue