diff --git a/webapp/src/octoClient.ts b/webapp/src/octoClient.ts index 6002b2c02..72f3dd52d 100644 --- a/webapp/src/octoClient.ts +++ b/webapp/src/octoClient.ts @@ -47,8 +47,8 @@ class OctoClient { } const responseJson = (await this.getJson(response)) as {token?: string} - if (responseJson.token !== '') { - localStorage.setItem('sessionId', responseJson.token || '') + if (responseJson.token) { + localStorage.setItem('sessionId', responseJson.token) return true } return false