]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/person/password-change.tsx
fix toaster upon user settings change (#1802)
[lemmy-ui.git] / src / shared / components / person / password-change.tsx
index dd85e05b3a1961e9f91975ac74185f8db8489291..565f55e6ce2853d0be7c6e53bf294d2a163a0632 100644 (file)
@@ -47,7 +47,9 @@ export class PasswordChange extends Component<any, State> {
         />
         <div className="row">
           <div className="col-12 col-lg-6 offset-lg-3 mb-4">
-            <h5>{I18NextService.i18n.t("password_change")}</h5>
+            <h1 className="h4 mb-4">
+              {I18NextService.i18n.t("password_change")}
+            </h1>
             {this.passwordChangeForm()}
           </div>
         </div>
@@ -133,7 +135,9 @@ export class PasswordChange extends Component<any, State> {
 
       if (i.state.passwordChangeRes.state === "success") {
         const data = i.state.passwordChangeRes.data;
-        UserService.Instance.login(data);
+        UserService.Instance.login({
+          res: data,
+        });
 
         const site = await HttpService.client.getSite({ auth: myAuth() });
         if (site.state === "success") {