summaryrefslogtreecommitdiffstats
path: root/ui/src/components/password_change.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/password_change.tsx')
-rw-r--r--ui/src/components/password_change.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/components/password_change.tsx b/ui/src/components/password_change.tsx
index d25c0daf..97f10888 100644
--- a/ui/src/components/password_change.tsx
+++ b/ui/src/components/password_change.tsx
@@ -5,6 +5,7 @@ import {
UserOperation,
LoginResponse,
PasswordChangeForm,
+ WebSocketJsonResponse,
} from '../interfaces';
import { WebSocketService, UserService } from '../services';
import { wsJsonToRes, capitalizeFirstLetter } from '../utils';
@@ -133,7 +134,7 @@ export class PasswordChange extends Component<any, State> {
WebSocketService.Instance.passwordChange(i.state.passwordChangeForm);
}
- parseMessage(msg: any) {
+ parseMessage(msg: WebSocketJsonResponse) {
let res = wsJsonToRes(msg);
if (msg.error) {
alert(i18n.t(msg.error));