[accelerator] show payment preview when not logged in

This commit is contained in:
nymkappa
2023-08-26 15:07:05 +02:00
parent c0308fbc0d
commit a3d61fa525
3 changed files with 16 additions and 13 deletions

View File

@@ -357,9 +357,7 @@ export class ApiService {
return of(null);
}
return this.httpClient.get<MenuGroup[]>(`${SERVICES_API_PREFIX}/account/menu`, {
headers: { 'Authorization': auth.token }
});
return this.httpClient.get<MenuGroup[]>(`${SERVICES_API_PREFIX}/account/menu`);
}
getUserInfo$(): Observable<any> {
@@ -368,9 +366,7 @@ export class ApiService {
return of(null);
}
return this.httpClient.get<any>(`${SERVICES_API_PREFIX}/account`, {
headers: { 'Authorization': auth.token }
});
return this.httpClient.get<any>(`${SERVICES_API_PREFIX}/account`);
}
logout$(): Observable<any> {
@@ -380,9 +376,7 @@ export class ApiService {
}
localStorage.removeItem('auth');
return this.httpClient.post(`${SERVICES_API_PREFIX}/auth/logout`, {
headers: { 'Authorization': auth.token }
});
return this.httpClient.post(`${SERVICES_API_PREFIX}/auth/logout`, {});
}
getServicesBackendInfo$(): Observable<IBackendInfo> {