🚑 (pictureChoice) Fix pic choice multi select parsing
This commit is contained in:
@@ -19,7 +19,7 @@ export const parsePictureChoicesReply =
|
|||||||
(acc, item) => {
|
(acc, item) => {
|
||||||
if (
|
if (
|
||||||
item.title &&
|
item.title &&
|
||||||
acc.strippedInput.toLowerCase() === item.title.toLowerCase()
|
acc.strippedInput.toLowerCase().includes(item.title.toLowerCase())
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
strippedInput: acc.strippedInput.replace(item.title ?? '', ''),
|
strippedInput: acc.strippedInput.replace(item.title ?? '', ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user