Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Dec 5, 2023
1 parent 047e074 commit 28cb59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/lib/shared/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class AuthService {

get user(): User | null {
const decodedToken = this.decodeToken();
return decodedToken ? decodedToken.user ?? null : null;
return decodedToken?.user ? decodedToken.user : null;
}

constructor(
Expand Down

0 comments on commit 28cb59b

Please sign in to comment.