1
0
Fork 0
forked from OpenNeo/impress

Oops, fix species name in zones tooltip

Oh right, this didn't show up in testing bc I only have a few models in
the local db, but yeah I messed this up a bit!!
This commit is contained in:
Emi Matchu 2023-11-11 11:57:43 -08:00
parent f56e1ad426
commit aae5c767bb
2 changed files with 2 additions and 2 deletions

View file

@ -641,7 +641,7 @@ function ItemZonesInfoListItem({ zoneLabel, bodies, showBodyInfo }) {
// "Acara" in either case! (We are at least gonna be defensive here
// and remove duplicates, though, in case both the Blue Acara and
// Mutant Acara body end up in the same list.)
const speciesNames = new Set(bodies.map((b) => b.species.name));
const speciesNames = new Set(bodies.map((b) => b.species.humanName));
const speciesListString = [...speciesNames].sort().join(", ");
content = (

View file

@ -51,7 +51,7 @@ function normalizeBody(body) {
species: {
id: String(body.species.id),
name: body.species.name,
humanName: body.species.humanName,
humanName: body.species.human_name,
},
};
}