Cleanup login client

This commit is contained in:
Chen-I Lim 2021-02-10 14:09:06 -08:00
parent b3a13412dd
commit a7086325a6

View file

@ -47,8 +47,8 @@ class OctoClient {
} }
const responseJson = (await this.getJson(response)) as {token?: string} const responseJson = (await this.getJson(response)) as {token?: string}
if (responseJson.token !== '') { if (responseJson.token) {
localStorage.setItem('sessionId', responseJson.token || '') localStorage.setItem('sessionId', responseJson.token)
return true return true
} }
return false return false