Skip to content

Commit 78dbe6f

Browse files
authored
Update GitHubApi.js
Signed-off-by: Christoffer Olofsson <15955091+ChrisAcrobat@users.noreply.github.com>
1 parent 92b47cb commit 78dbe6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GitHubApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class GitHubApi{
202202
}
203203
}
204204
static isLoggedIn(){
205-
return !!GitHubApi.getSession().accessToken;
205+
return !!GitHubApi.getSession()?.accessToken;
206206
}
207207
static logout(){
208208
localStorage.removeItem(GitHubApi.#SESSION_KEY);

0 commit comments

Comments
 (0)