Skip to content

Commit

Permalink
fix: de-weebify actors (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
revam authored Dec 30, 2024
1 parent 5df7302 commit 792ea8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/pages/collection/series/SeriesCredits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const SeriesCredits = () => {

const cast = useSeriesCastQuery(series.IDs.ID).data;
const castByType = useMemo(() => ({
Character: cast?.filter(credit => credit.RoleName === 'Seiyuu') ?? [],
Staff: cast?.filter(credit => credit.RoleName !== 'Seiyuu') ?? [],
Character: cast?.filter(credit => credit.RoleName === 'Actor') ?? [],
Staff: cast?.filter(credit => credit.RoleName !== 'Actor') ?? [],
}), [cast]);

const uniqueRoles = useMemo(() => ({
Expand All @@ -89,7 +89,7 @@ const SeriesCredits = () => {
<div className="flex w-full gap-x-6">
<div className="flex flex-col gap-y-6">
<CreditsSearchAndFilterPanel
inputPlaceholder={mode === 'Character' ? 'Character or Seiyuu\'s Name...' : 'Staff Name...'}
inputPlaceholder={mode === 'Character' ? 'Character or Actor\'s Name...' : 'Staff Name...'}
search={search}
roleFilter={roleFilter}
uniqueRoles={uniqueRoles[mode]}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/collection/series/SeriesOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ const SeriesOverview = () => {
</ShokoPanel>
)}

<ShokoPanel title="Top 20 Seiyuu" className="w-full" transparent>
<ShokoPanel title="Top 20 Actors" className="w-full" transparent>
<div className="z-10 flex w-full gap-x-6">
{cast?.filter(credit => credit.RoleName === 'Seiyuu' && credit.Character).slice(0, 20).map(seiyuu => (
{cast?.filter(credit => credit.RoleName === 'Actor' && credit.Character).slice(0, 20).map(seiyuu => (
<div
key={`${seiyuu.Character?.Name}-${Math.random() * (cast.length + (seiyuu.Character?.Name.length ?? 0))}`}
className="flex flex-col items-center gap-y-3 pb-3"
Expand Down

0 comments on commit 792ea8c

Please sign in to comment.