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);