Greetings no longer break when a customer has no name
A customer with no name on file no longer sees "Hi, !". Joy drops the empty name and keeps the greeting clean in the widget and popups.

Summarize this post with AI
Why this matters

Some customers sign up with no name on file. Until now, a greeting that expected one read "Hi, !".
The greeting stays whole
Joy removes the empty name and the comma next to it. The closing mark stays, so "Hi, !" becomes "Hi!".
Your own wording wins
Joy shows the greeting you wrote for customers without a name. Leave it blank and Joy drops the name for you.
The same rule in three places
The widget, popups and Theme Integration snippet all follow it.
A customer signed up with only an email address. What does my widget say to them? It says "Welcome back" with no stray comma, because the default greeting drops the empty name. If you wrote a greeting for customers without a name, Joy shows that instead.
How to access and use
- Leave the loyalty widget and popups alone. The fix is already live.
- If you added the Theme Integration snippet, open
sections/header.liquidandsnippets/header-drawer.liquid. Find the lineHi, {{ customer.first_name }}!in each. - Replace it with
Hi{% if customer.first_name != blank %}, {{ customer.first_name }}{% endif %}!and save the theme. The new line adds the name only when the customer has one. - Preview as a customer with no first name. The greeting reads "Hi!".






