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 pollForUser = async (token: string) => {
|
||||||
const apiUser = await cloud.login.user.get(token).catch(() => null);
|
const apiUser = await cloud.login.user.get(token).catch(() => null);
|
||||||
if (apiUser) {
|
if (apiUser) {
|
||||||
user = apiUser;
|
userService.set(apiUser);
|
||||||
userService.logout;
|
return;
|
||||||
return apiUser;
|
|
||||||
}
|
}
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user