feat: fix showing wrong error message: "Please sign in first" (#1245)

This commit is contained in:
Yaodong Yu
2022-10-27 23:50:45 +08:00
committed by GitHub
parent 971e53dfd8
commit 80bf29d79a
17 changed files with 9 additions and 11 deletions

View File

@ -221,10 +221,9 @@ class App extends Component {
if (res.status === "ok") {
account = res.data;
account.organization = res.data2;
this.setLanguage(account);
} else {
if (res.msg !== "Please sign in first") {
if (res.data !== "Please login first") {
Setting.showMessage("error", `Failed to sign in: ${res.msg}`);
}
}