🔥 (viewer) Remove buttons input validation

Did not work with buttons that contain a variable
This commit is contained in:
Baptiste Arnaud
2023-02-26 18:53:53 +01:00
parent edf0ecd712
commit 186b376038
4 changed files with 0 additions and 18 deletions

View File

@@ -1 +0,0 @@
export * from './utils'

View File

@@ -1 +0,0 @@
export * from './validateButtonInput'

View File

@@ -1,11 +0,0 @@
import { ChoiceInputBlock } from 'models'
export const validateButtonInput = (
buttonBlock: ChoiceInputBlock,
input: string
) =>
buttonBlock.items.some(
(item) =>
item.content === input ||
(item.content?.startsWith('{{') && item.content.endsWith('}}'))
)