mirror of
https://github.com/stashapp/stash.git
synced 2025-12-27 02:32:56 +01:00
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
This commit is contained in:
parent
429fc3869b
commit
c62b0b28ed
1 changed files with 3 additions and 2 deletions
|
|
@ -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<IPerformerModalProps> = ({
|
|||
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<IPerformerModalProps> = ({
|
|||
{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)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue