From 28cb59b1d3a1ebee28ce3e8137585321f9b4d90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= Date: Tue, 5 Dec 2023 16:43:44 -0500 Subject: [PATCH] wip --- packages/auth/src/lib/shared/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/auth/src/lib/shared/auth.service.ts b/packages/auth/src/lib/shared/auth.service.ts index 3fb7fed66c..940e009bfe 100644 --- a/packages/auth/src/lib/shared/auth.service.ts +++ b/packages/auth/src/lib/shared/auth.service.ts @@ -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(