when i type this code "user: window.SAILS_LOCALS.user "
its giving me error on console of the profile page like,
"profile:70 Uncaught TypeError: Cannot read property 'user' of undefined
(anonymous) @ profile:70
should i declare somewhere else "user" since it seems like this