Browse Source

Enable searching by pack name

pull/60/head
Adele Reed 2 years ago
parent
commit
cbbadac979
  1. 1
      web/src/index.js

1
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)
),

Loading…
Cancel
Save