[object Object] import { currentMember } from 'wix-members-backend'; export function myGetCurrentMemberFunction(options) { return currentMember.getMember(options) .then((member) => { const memberId = member._id; const fullName = `${member.contactDetails.firstName} ${member.contactDetails.lastName}`; const memberProfilePage = `https://yoursite.com/profile/${member.profile.slug}/profile`; return member; }) .catch((error) => { console.error(error); }) } if( $w("#myElementID").hidden ) { $w("#myElementID").show(); } else { $w("#myElementID").hide(); } $w('#myButtonID').onClick(() => { console.log("Hello World!"); });