2
0

feat(engine): ⚗️ Await for result update

This commit is contained in:
Baptiste Arnaud
2022-05-22 08:33:50 -07:00
parent 350719c793
commit 391aeaddf1
4 changed files with 8 additions and 8 deletions

View File

@ -81,7 +81,7 @@ export const OnboardingModal = ({ totalTypebots }: Props) => {
setTypebot(data as Typebot)
}
const handleNewAnswer = (answer: Answer) => {
const handleNewAnswer = async (answer: Answer) => {
const isName = answer.variableId === 'cl126f4hf000i2e6d8zvzc3t1'
const isCompany = answer.variableId === 'cl126jqww000w2e6dq9yv4ifq'
const isCategories = answer.variableId === 'cl126mo3t001b2e6dvyi16bkd'