1
0
Fork 1

Oh right, use the series name in the message

This commit is contained in:
Emi Matchu 2025-01-22 16:45:33 -08:00
parent a4c3c31279
commit 667f562a88

View file

@ -304,16 +304,17 @@ function getSearchNCStylesMessage(query, altStyles) {
);
}
// NOTE: This won't work on multi-word series names, of which there are
// currently none.
// NOTE: This won't work on multi-word series main names, of which there
// are currently none. (Some *series names* like Prismatics are
// multi-word, but their *main* name is not.)
const seriesWord = seriesMainNames.find((n) =>
queryWords.includes(n.toLowerCase()),
);
if (seriesWord != null) {
return (
<>
If you're looking for NC Styles, check the emotion picker below the pet
preview!
If you're looking for {seriesWord} NC Styles, check the emotion picker
below the pet preview!
</>
);
}