From c62b0b28ed27d8d37b252dd684998db7c6e28ee1 Mon Sep 17 00:00:00 2001 From: DampToast <75002033+DampToast@users.noreply.github.com> Date: Wed, 16 Feb 2022 21:25:34 -0600 Subject: [PATCH] Performer tagger modal will load country name instead of code (#2323) * Performer tagger modal will load country name instead of code When using the performer tagger, it would pull the 2 character country code from StashDB and store that. It now shows the full country name and stores the full country name instead. Also verified that it causes no issue with a performer that has no country set on StashDB --- ui/v2.5/src/components/Tagger/PerformerModal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/v2.5/src/components/Tagger/PerformerModal.tsx b/ui/v2.5/src/components/Tagger/PerformerModal.tsx index 38b08d2e9..b99644f2b 100755 --- a/ui/v2.5/src/components/Tagger/PerformerModal.tsx +++ b/ui/v2.5/src/components/Tagger/PerformerModal.tsx @@ -12,6 +12,7 @@ import { } from "src/components/Shared"; import * as GQL from "src/core/generated-graphql"; import { stringToGender } from "src/utils/gender"; +import { getCountryByISO } from "src/utils/country"; interface IPerformerModalProps { performer: GQL.ScrapedScenePerformerDataFragment; @@ -124,7 +125,7 @@ const PerformerModal: React.FC = ({ birthdate: performer.birthdate, ethnicity: performer.ethnicity, eye_color: performer.eye_color, - country: performer.country, + country: getCountryByISO(performer.country), height: performer.height, measurements: performer.measurements, fake_tits: performer.fake_tits, @@ -198,7 +199,7 @@ const PerformerModal: React.FC = ({ {renderField("birthdate", performer.birthdate)} {renderField("death_date", performer.death_date)} {renderField("ethnicity", performer.ethnicity)} - {renderField("country", performer.country)} + {renderField("country", getCountryByISO(performer.country))} {renderField("hair_color", performer.hair_color)} {renderField("eye_color", performer.eye_color)} {renderField("height", performer.height)}