0👍
✅
After a debugging i found that in local currentUser.roles_id === 1
will return 1 as number but in host will return it as string
so in this case i don’t need to specify the type in ‘===’ so i changed it to ‘==’ to check only the value
Source:stackexchange.com