Why is currentMember.getMember() returning undefined?

Is that the code that you are using that says member is undefined ?

Is the user logged in? Who is the user? You? Anonymous visitor?