🐛 Fix variable buttons with new engine
This commit is contained in:
@ -3,4 +3,9 @@ import { ChoiceInputBlock } from 'models'
|
||||
export const validateButtonInput = (
|
||||
buttonBlock: ChoiceInputBlock,
|
||||
input: string
|
||||
) => buttonBlock.items.some((item) => item.content === input)
|
||||
) =>
|
||||
buttonBlock.items.some(
|
||||
(item) =>
|
||||
item.content === input ||
|
||||
(item.content?.startsWith('{{') && item.content.endsWith('}}'))
|
||||
)
|
||||
|
Reference in New Issue
Block a user