Commit edc08403 by jay

otp

1 parent 097d774b
......@@ -126,12 +126,12 @@ const Signup = props => {
setOtpSent(true);
} else {
e.preventDefault();
const oneTimePassword = otp.join("")
const otpRes = await finishVendorOtpVerification({email: values.email, oneTimePassword})
const oneTimePassword = otp.join("");
const otpRes = await finishVendorOtpVerification({ email: values.email, oneTimePassword });
console.log("otpRes", otpRes);
if (otpRes.data.ok){
if (otpRes.data.ok) {
// router.push("/thank-you")
toast.success("User registered successflly")
toast.success("User registered successflly");
}
}
}}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!