need help to check if user is logged in

Shopify Partner
1418 140 197

hello all , this is my code, ideally it should show link to wish list if customer is logged in, and since I am staff it should show for me too, but it is not working, can you help me to find out why?


{% if customer %}
<a href="#">link to wishlist</a>
{% endif %}

you are welcome to contact me.
My email -