Skip to content

Commit

Permalink
Fixed up dotyouclient fallbacks; (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen authored Jan 31, 2025
1 parent 46742b8 commit 149e710
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/libs/js-lib/src/core/DotYouClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ export class BaseDotYouClient {
}

getLoggedInIdentity(): string | undefined {
return this._options?.loggedInIdentity ||
this.getType() === ApiType.Owner ||
this.getType() === ApiType.App
? this.getHostIdentity()
: undefined;
return (
this._options?.loggedInIdentity ||
(this.getType() === ApiType.Owner || this.getType() === ApiType.App
? this.getHostIdentity()
: undefined)
);
}

isOwner(): boolean {
Expand Down

0 comments on commit 149e710

Please sign in to comment.