DEV: Resolve user_option deprecation (#23082)

Setting user_options directly on the user object is deprecated (see https://github.com/discourse/discourse/blob/0b56af6f58/app/assets/javascripts/discourse/app/models/user.js#L150-L165). We're already setting it in the correct way a few lines later, so this line can be removed.
This commit is contained in:
David Taylor 2023-08-14 13:19:03 +01:00 committed by GitHub
parent 0b56af6f58
commit 643193d2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -33,8 +33,6 @@ export default {
return; return;
} }
this.currentUser.set("seen_popups", seenUserTips);
if (!this.currentUser.user_option) { if (!this.currentUser.user_option) {
this.currentUser.set("user_option", {}); this.currentUser.set("user_option", {});
} }