Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 71d773d

Browse files
authored
Fix missing identity in top navigation (#1044)
Closes #1042 Signed-off-by: James Taylor <jamest@uk.ibm.com>
1 parent 6bc61f5 commit 71d773d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/composer-playground/src/app/services/identity.service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ export class IdentityService {
4444

4545
getCurrentIdentity(): Promise<string> {
4646
let connectionProfile = this.connectionProfileService.getCurrentConnectionProfile();
47-
return this.getIdentity(connectionProfile);
47+
return this.getIdentity(connectionProfile)
48+
.then((identity) => {
49+
this._currentIdentity.next(identity);
50+
return this._currentIdentity.getValue();
51+
});
4852
}
4953

5054
getIdentity(connectionProfile: string): Promise<string> {

0 commit comments

Comments
 (0)