aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+accounts/accounts.component.ts2
-rw-r--r--client/src/app/shared/account/account.service.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts
index 1298803c3..0a52985da 100644
--- a/client/src/app/+accounts/accounts.component.ts
+++ b/client/src/app/+accounts/accounts.component.ts
@@ -16,7 +16,7 @@ export class AccountsComponent implements OnInit {
16 ) {} 16 ) {}
17 17
18 ngOnInit () { 18 ngOnInit () {
19 const accountId = parseInt(this.route.snapshot.params['accountId'], 10) 19 const accountId = this.route.snapshot.params['accountId']
20 20
21 this.accountService.getAccount(accountId) 21 this.accountService.getAccount(accountId)
22 .subscribe(account => this.account = account) 22 .subscribe(account => this.account = account)
diff --git a/client/src/app/shared/account/account.service.ts b/client/src/app/shared/account/account.service.ts
index 20e52d946..6b261cf53 100644
--- a/client/src/app/shared/account/account.service.ts
+++ b/client/src/app/shared/account/account.service.ts
@@ -18,7 +18,7 @@ export class AccountService {
18 private restExtractor: RestExtractor 18 private restExtractor: RestExtractor
19 ) {} 19 ) {}
20 20
21 getAccount (id: number): Observable<Account> { 21 getAccount (id: number | string): Observable<Account> {
22 return this.authHttp.get<ServerAccount>(AccountService.BASE_ACCOUNT_URL + id) 22 return this.authHttp.get<ServerAccount>(AccountService.BASE_ACCOUNT_URL + id)
23 .pipe( 23 .pipe(
24 map(accountHash => new Account(accountHash)), 24 map(accountHash => new Account(accountHash)),