This commit is contained in:
Adele Reed 2024-07-01 19:24:05 +05:00 committed by GitHub
commit 961574f3d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ class App extends Component {
const packsWithFilteredStickers = allPacks.map(pack => ({ const packsWithFilteredStickers = allPacks.map(pack => ({
...pack, ...pack,
stickers: pack.stickers.filter(sticker => stickers: pack.stickers.filter(sticker =>
sanitizeString(pack.title).includes(searchTerm) ||
sanitizeString(sticker.body).includes(searchTerm) || sanitizeString(sticker.body).includes(searchTerm) ||
sanitizeString(sticker.id).includes(searchTerm) sanitizeString(sticker.id).includes(searchTerm)
), ),