From 667f562a8831612c010315268b2c642f7147155e Mon Sep 17 00:00:00 2001 From: Emi Matchu <emi@matchu.dev> Date: Wed, 22 Jan 2025 16:45:33 -0800 Subject: [PATCH] Oh right, use the series name in the message --- app/javascript/wardrobe-2020/WardrobePage/SearchPanel.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/javascript/wardrobe-2020/WardrobePage/SearchPanel.js b/app/javascript/wardrobe-2020/WardrobePage/SearchPanel.js index 01c59a9f..bcfd1c11 100644 --- a/app/javascript/wardrobe-2020/WardrobePage/SearchPanel.js +++ b/app/javascript/wardrobe-2020/WardrobePage/SearchPanel.js @@ -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! </> ); }