Skip to content
Snippets Groups Projects
Commit 05654387 authored by xaralis's avatar xaralis
Browse files

fix: one of sentry issues

parent 02b245f7
No related branches found
No related tags found
No related merge requests found
Pipeline #2066 passed
...@@ -48,7 +48,7 @@ const onKeycloakEvent = async (event) => { ...@@ -48,7 +48,7 @@ const onKeycloakEvent = async (event) => {
if (["onAuthRefreshSuccess", "onAuthSuccess"].includes(event)) { if (["onAuthRefreshSuccess", "onAuthSuccess"].includes(event)) {
Sentry.setUser(keycloak.tokenParsed); Sentry.setUser(keycloak.tokenParsed);
const kcRoles = keycloak.tokenParsed.roles; const kcRoles = keycloak.tokenParsed.roles || [];
let role = null; let role = null;
if (kcRoles.includes("chairman")) { if (kcRoles.includes("chairman")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment