Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 264e24f

Browse files
authored
Merge pull request #5791 from thermaq/patch-1
Fix password change popup message
2 parents 318db15 + b5bc625 commit 264e24f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/settings/tabs/user/GeneralUserSettingsTab.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ export default class GeneralUserSettingsTab extends React.Component {
206206

207207
_onPasswordChangeError = (err) => {
208208
// TODO: Figure out a design that doesn't involve replacing the current dialog
209-
let errMsg = err.error || "";
209+
let errMsg = err.error || err.message || "";
210210
if (err.httpStatus === 403) {
211211
errMsg = _t("Failed to change password. Is your password correct?");
212-
} else if (err.httpStatus) {
212+
} else if (!errMsg) {
213213
errMsg += ` (HTTP status ${err.httpStatus})`;
214214
}
215215
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");

0 commit comments

Comments
 (0)