You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to put async function in the validator of the question object. It always prompt twice. Is it possible to put async function in validator ? validate: async (ans: string[]) => { // console.log(ans); // if (ans.length === 0 || ans.length > 3) { // return 'Error!!! Invalid PoC number'; // } else if (ans.length !== new Set(ans).size) { // return 'Duplicate value inserted'; // } const PoCValid = await validatePoCs(ans.map((val) => (val += '@ea.com'))); return PoCValid; // return true; },
** I only enter once, but the question always prompt twice **
The text was updated successfully, but these errors were encountered:
I try to put async function in the validator of the question object. It always prompt twice. Is it possible to put async function in validator ?
validate: async (ans: string[]) => { // console.log(ans); // if (ans.length === 0 || ans.length > 3) { // return 'Error!!! Invalid PoC number'; // } else if (ans.length !== new Set(ans).size) { // return 'Duplicate value inserted'; // } const PoCValid = await validatePoCs(ans.map((val) => (val += '@ea.com'))); return PoCValid; // return true; },
** I only enter once, but the question always prompt twice **
The text was updated successfully, but these errors were encountered: