fix could not unregister if multiple users existed

This commit is contained in:
zefie
2022-11-28 14:28:40 -05:00
parent bdea4a59bd
commit 6d15fbc9b4
2 changed files with 2 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ class WTVClientSessionData {
}
switchUserID(user_id, update_mail = true, update_ticket = true, update_favorite = true) {
this.user_id = user_id;
this.user_id = parseInt(user_id);
if (user_id != null) {
this.loadSessionData();
if (this.isRegistered() && update_mail) this.assignMailStore();