]> Untitled Git - lemmy-ui.git/commitdiff
New fixes.
authorDessalines <tyhou13@gmx.com>
Tue, 23 Mar 2021 22:40:49 +0000 (18:40 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 23 Mar 2021 22:40:49 +0000 (18:40 -0400)
package.json
src/shared/components/person.tsx
yarn.lock

index ef7b088340388c73644b86d60fb91c5bf46325b3..afe96b33ca36c598c95bca6ac095de3f1785a8c8 100644 (file)
@@ -67,7 +67,7 @@
     "eslint": "^7.20.0",
     "eslint-plugin-prettier": "^3.3.1",
     "husky": "^5.1.0",
-    "lemmy-js-client": "0.10.0-rc.5",
+    "lemmy-js-client": "0.10.0-rc.9",
     "lint-staged": "^10.5.4",
     "mini-css-extract-plugin": "^1.3.8",
     "node-fetch": "^2.6.1",
index fc0962a7257a72090b34f0da68e8dd8c023f095b..fdc947940ff3965bd33cb22592f2a5ac078b314f 100644 (file)
@@ -1001,7 +1001,7 @@ export class Person extends Component<any, PersonState> {
     i.state.userSettingsForm.matrix_user_id = event.target.value;
     if (
       i.state.userSettingsForm.matrix_user_id == "" &&
-      !UserService.Instance.localUserView.local_user.matrix_user_id
+      !UserService.Instance.localUserView.person.matrix_user_id
     ) {
       i.state.userSettingsForm.matrix_user_id = undefined;
     }
@@ -1098,7 +1098,7 @@ export class Person extends Component<any, PersonState> {
       this.state.userSettingsForm.send_notifications_to_email =
         UserService.Instance.localUserView.local_user.send_notifications_to_email;
       this.state.userSettingsForm.matrix_user_id =
-        UserService.Instance.localUserView.local_user.matrix_user_id;
+        UserService.Instance.localUserView.person.matrix_user_id;
     }
   }
 
index bbc8762aea36be8f268f969b3bdda6372e0502f3..694628f2e36ffadcce23b7461466626850a5add6 100644 (file)
--- a/yarn.lock
+++ b/yarn.lock
@@ -5022,10 +5022,10 @@ lcid@^1.0.0:
   dependencies:
     invert-kv "^1.0.0"
 
-lemmy-js-client@0.10.0-rc.5:
-  version "0.10.0-rc.5"
-  resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.5.tgz#96b7b34575c7eda6c99a291f4f679bda4c6af6a9"
-  integrity sha512-mLvQgzGTrOFe7KIO8o2oZBPp/8gJ309VO58EaP+7/BgbHD0GPemzqFdeNOMyIe2WyQsXhGrtHOjiTfBXyZDOoQ==
+lemmy-js-client@0.10.0-rc.9:
+  version "0.10.0-rc.9"
+  resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.9.tgz#34d20541faffa12c45d9bed1d61d5695df1c497f"
+  integrity sha512-ZowaY303QvfN8rBocVfGKQmnC2B7nfJgb5+GvzH85vrUO3hOroQCbGOZ0eXEWtX1c3/OuOI7sAaKkB4Urpa/HA==
 
 levn@^0.4.1:
   version "0.4.1"