From cbbadac979090baa55c1e9c18440e48ea036a427 Mon Sep 17 00:00:00 2001 From: Adele Reed Date: Fri, 23 Jun 2023 13:04:20 -0700 Subject: [PATCH] Enable searching by pack name --- web/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/index.js b/web/src/index.js index a215c46..6922ee3 100644 --- a/web/src/index.js +++ b/web/src/index.js @@ -109,6 +109,7 @@ class App extends Component { const packsWithFilteredStickers = allPacks.map(pack => ({ ...pack, stickers: pack.stickers.filter(sticker => + sanitizeString(pack.title).includes(searchTerm) || sanitizeString(sticker.body).includes(searchTerm) || sanitizeString(sticker.id).includes(searchTerm) ),