New fixes.

This commit is contained in:
Dessalines 2021-03-23 18:40:49 -04:00
parent 5de26bfd69
commit 62a6e82e9b
3 changed files with 7 additions and 7 deletions

View file

@ -67,7 +67,7 @@
"eslint": "^7.20.0", "eslint": "^7.20.0",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"husky": "^5.1.0", "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", "lint-staged": "^10.5.4",
"mini-css-extract-plugin": "^1.3.8", "mini-css-extract-plugin": "^1.3.8",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",

View file

@ -1001,7 +1001,7 @@ export class Person extends Component<any, PersonState> {
i.state.userSettingsForm.matrix_user_id = event.target.value; i.state.userSettingsForm.matrix_user_id = event.target.value;
if ( if (
i.state.userSettingsForm.matrix_user_id == "" && 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; 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 = this.state.userSettingsForm.send_notifications_to_email =
UserService.Instance.localUserView.local_user.send_notifications_to_email; UserService.Instance.localUserView.local_user.send_notifications_to_email;
this.state.userSettingsForm.matrix_user_id = this.state.userSettingsForm.matrix_user_id =
UserService.Instance.localUserView.local_user.matrix_user_id; UserService.Instance.localUserView.person.matrix_user_id;
} }
} }

View file

@ -5022,10 +5022,10 @@ lcid@^1.0.0:
dependencies: dependencies:
invert-kv "^1.0.0" invert-kv "^1.0.0"
lemmy-js-client@0.10.0-rc.5: lemmy-js-client@0.10.0-rc.9:
version "0.10.0-rc.5" version "0.10.0-rc.9"
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.5.tgz#96b7b34575c7eda6c99a291f4f679bda4c6af6a9" resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.9.tgz#34d20541faffa12c45d9bed1d61d5695df1c497f"
integrity sha512-mLvQgzGTrOFe7KIO8o2oZBPp/8gJ309VO58EaP+7/BgbHD0GPemzqFdeNOMyIe2WyQsXhGrtHOjiTfBXyZDOoQ== integrity sha512-ZowaY303QvfN8rBocVfGKQmnC2B7nfJgb5+GvzH85vrUO3hOroQCbGOZ0eXEWtX1c3/OuOI7sAaKkB4Urpa/HA==
levn@^0.4.1: levn@^0.4.1:
version "0.4.1" version "0.4.1"