diff --git a/flutter/lib/common/hbbs/hbbs.dart b/flutter/lib/common/hbbs/hbbs.dart index 50960e59c..d1e44abc8 100644 --- a/flutter/lib/common/hbbs/hbbs.dart +++ b/flutter/lib/common/hbbs/hbbs.dart @@ -123,7 +123,6 @@ class LoginResponse { LoginResponse.fromJson(Map json) { access_token = json['access_token']; type = json['type']; - print('REMOVE ME ================== $json'); user = json['user'] != null ? UserPayload.fromJson(json['user']) : null; } } diff --git a/src/ui/index.tis b/src/ui/index.tis index 2085f998d..1227ccddb 100644 --- a/src/ui/index.tis +++ b/src/ui/index.tis @@ -1175,8 +1175,11 @@ function check_if_overlay() { checkConnectStatus(); function set_local_user_info(user) { - var user_info = {name: user.name, status: user.status}; - handler.set_local_option("user_info", JSON.stringify(user_info)); + var user_info = {name: user.name}; + if (user.status) { + user_info.status = user.status; + } + handler.set_local_option("user_info", JSON.stringify(user_info)); } function login() {