feat(provider): update

This commit is contained in:
Leifer Mendez
2022-12-19 14:02:09 +01:00
parent 2f633c72da
commit 0c94647a27
3 changed files with 124 additions and 127 deletions

View File

@@ -31,10 +31,7 @@ const addAnswer =
nested: Array.isArray(nested) ? nested : [],
})
const callback =
typeof cb === 'function'
? cb
: () => console.log('Callback no definida')
const callback = typeof cb === 'function' ? cb : () => null
const lastCtx = inCtx.hasOwnProperty('ctx') ? inCtx.ctx : inCtx