Browse Source

fix(client): fallback api key to empty string

pull/7214/head
KenTandrian 2 months ago
parent
commit
65de0ae987
  1. 3
      apps/client/src/app/pages/api/api-page.component.ts

3
apps/client/src/app/pages/api/api-page.component.ts

@ -59,7 +59,8 @@ export class GfApiPageComponent implements OnInit {
) {} ) {}
public ngOnInit() { public ngOnInit() {
this.apiKey = prompt($localize`Please enter your Ghostfolio API key:`); this.apiKey =
prompt($localize`Please enter your Ghostfolio API key:`) ?? '';
this.aiServiceHealth$ = this.fetchAiServiceHealth(); this.aiServiceHealth$ = this.fetchAiServiceHealth();
this.assetProfile$ = this.fetchAssetProfile({ symbol: 'AAPL' }); this.assetProfile$ = this.fetchAssetProfile({ symbol: 'AAPL' });

Loading…
Cancel
Save