0๐
โ
Try this:
console.log(JSON.parse(sessionstore.user).role)
You stored your data with JSON.stringify
so you have to parse your data!
0๐
Source:stackexchange.com