mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
Fixes user login that broke in previous commit
This commit is contained in:
parent
e243b4d9ff
commit
a8c2fb6884
@ -15,9 +15,8 @@
|
||||
const pollForUser = async (token: string) => {
|
||||
const apiUser = await cloud.login.user.get(token).catch(() => null);
|
||||
if (apiUser) {
|
||||
user = apiUser;
|
||||
userService.logout;
|
||||
return apiUser;
|
||||
userService.set(apiUser);
|
||||
return;
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user