2
0

🚑 (pictureChoice) Fix pic choice multi select parsing

This commit is contained in:
Baptiste Arnaud
2023-11-26 11:24:01 +01:00
parent 7f914e9b8c
commit b7ee800649

View File

@ -19,7 +19,7 @@ export const parsePictureChoicesReply =
(acc, item) => {
if (
item.title &&
acc.strippedInput.toLowerCase() === item.title.toLowerCase()
acc.strippedInput.toLowerCase().includes(item.title.toLowerCase())
)
return {
strippedInput: acc.strippedInput.replace(item.title ?? '', ''),