Liquid {% if customer %} Condition Not Triggered When Logged in as Admin

In Liquid:

liquid

{% if customer %}


When using an admin account to log in, it often fails to be recognized — this condition doesn't execute, meaning it is treated as if no user is logged in.

Even after a successful login, customer remains null on the storefront.

This issue has been reported by multiple developers. A similar case was discussed in the following topic on the Shopify Community forum:

It appears to be a platform-side session inconsistency or limitation.

We’re working on resolving this now - thanks for flagging!