Skip to content

Commit

Permalink
Update errors for createAccount and renameAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Aug 24, 2023
1 parent eabe3a0 commit d831190
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ const metamask = {
mainPageElements.createAccount.createAccountError,
);
const formErrorTxt = await formErrorEl.innerText();
const accountExists = 'This account name already exists' === formErrorTxt;
const accountExists =
'This account name already exists' === formErrorTxt ||
'This account name is reserved' === formErrorTxt;

if (accountExists) {
log(`[createAccount] ${formErrorTxt}`);
Expand Down Expand Up @@ -415,7 +417,9 @@ const metamask = {
mainPageElements.renameAccount.error,
);
const formErrorTxt = await formErrorEl.innerText();
const accountExists = 'This account name already exists' === formErrorTxt;
const accountExists =
'This account name already exists' === formErrorTxt ||
'This account name is reserved' === formErrorTxt;

if (accountExists) {
log(`[createAccount] ${formErrorTxt}`);
Expand Down

0 comments on commit d831190

Please sign in to comment.