Skip to content

Commit

Permalink
fix: use genderToString for gender
Browse files Browse the repository at this point in the history
  • Loading branch information
TgSeed committed Jun 26, 2022
1 parent 2a232c1 commit 94f9cf8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Modal,
TruncatedText,
} from "src/components/Shared";
import { genderToString } from "src/utils/gender";
import { queryScrapePerformerQuery } from "src/core/StashService";
import useToast from "../../../hooks/Toast";
import { faSearch } from "@fortawesome/free-solid-svg-icons";
Expand Down Expand Up @@ -72,9 +73,7 @@ const PerformerSearchResultDetails: React.FC<IPerformerSearchResultDetailsProps>
<div className="col flex-column">
<h4>{performer.name}</h4>
<h5>
{performer.gender &&
performer.gender[0].toUpperCase() +
performer.gender.substring(1).toLowerCase()}
{performer.gender && genderToString(performer.gender)}
{performer.gender && calculated_age && ` • `}
{calculated_age}
{calculated_age && " "}
Expand Down

0 comments on commit 94f9cf8

Please sign in to comment.