This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly translate errors in
ChangePassword.tsx
so they show up tra…
…nslated to the user but not in our logs (#10615) * Properly translate errors in `ChangePassword.tsx` So they show up translated to the user but not in our logs. Part of element-hq/element-web#9597 and also fixes it since it's the last piece mentioned (there could be other cases we log translated strings) Fix element-hq/element-web#9597 * Make more useful * Update i18n strings * No need to checkPassword since field validation already covers this See #10615 (comment) Both of the error cases are covered by the logic in `verifyFieldsBeforeSubmit()` just above and there is no way `checkPassword` would ever throw one of these errors since they are already valid by the time it reaches here. * Update i18n strings * Revert "No need to checkPassword since field validation already covers this" This reverts commit 7786dd1. * Update i18n strings * Add todo context to note that we can remove this logic in the future * Ensure is an error * Remove else See #10615 (comment)
- Loading branch information
1 parent
e24e85f
commit 16ab5e9
Showing
3 changed files
with
74 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters