From 307f5616bcf31ecc5479bde97076e2ea4ab00ab1 Mon Sep 17 00:00:00 2001 From: FlayInAHook Date: Wed, 16 Dec 2020 14:45:12 +0100 Subject: [PATCH] bullshit implementation --- src/app/services/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts index f558ceb..bdf43e5 100644 --- a/src/app/services/auth.service.ts +++ b/src/app/services/auth.service.ts @@ -33,9 +33,9 @@ export class AuthService { if (value === null){ value = new AuthUser(); } - if (value.user != undefined){ + if (value.user !== undefined){ let roles = []; - if (value.user.roles.length !== 0 ){ + if (value.user.roles !== undefined ){ for (let role of value.user.roles){ roles.push(role.name);