I’m stuck with this one… Should be quite simple, I have an item that is set on ‘collapsed on load’, and needs to ‘expand’ if the logged in user is email1 / 123@gmail.com - No errors, any ideas?
I’m not sure… and the API documentation doesn’t state it… but… could it be that the currentUserEmail is an Array? Or would it help to explicitly convert it with toString?
There were a couple of useres recently that had problems getting their code working… all tried to check the currentUserEmail to a specific email address… so might be an idea to look up what ypu get really delivered with wixUsers.currentUserEmail…
Thanks for your question. I don’t think we have a property “currentUserEmail”. You should use “currentUser” and then you need to use getEmail() method.