From f1bab33296ce2217d1002fecd9eabbeac1fbc0cf Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 22 Oct 2020 09:15:03 +0100 Subject: [PATCH] Fixed member's location sometimes showing as ", US" no issue - geolocation.region is not always available but we had assumed it was. Adjusted the logic to only show "region, US" if region is available --- ghost/admin/app/components/gh-members-list-item.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-members-list-item.hbs b/ghost/admin/app/components/gh-members-list-item.hbs index 8cf99c1157..867c96fce7 100644 --- a/ghost/admin/app/components/gh-members-list-item.hbs +++ b/ghost/admin/app/components/gh-members-list-item.hbs @@ -22,7 +22,7 @@ {{#if (and @member.geolocation @member.geolocation.country)}} - {{#if (eq @member.geolocation.country_code "US")}} + {{#if (and (eq @member.geolocation.country_code "US") @member.geolocation.region)}} {{@member.geolocation.region}}, US {{else}} {{@member.geolocation.country}}