Skip to content

Commit

Permalink
Confirm error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Timshel committed Sep 13, 2024
1 parent ada6e18 commit d9a524d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ export abstract class BaseMembersComponent<UserView extends UserViewTypes> {
}
await confirmUser(publicKey);
} catch (e) {
this.toastService.showToast({
variant: "error",
title: this.i18nService.t("errorAdminConfirmUser"),
message: e.message,
});
this.logService.error(`Handled exception: ${e}`);
}
}
Expand Down
3 changes: 3 additions & 0 deletions apps/web/src/locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3351,6 +3351,9 @@
}
}
},
"errorAdminConfirmUser": {
"message": "Failed to confirm user"
},
"editedUserId": {
"message": "Edited user $ID$.",
"placeholders": {
Expand Down

0 comments on commit d9a524d

Please sign in to comment.