fix survey fields are saved only in customer

This commit is contained in:
Matthias Nannt
2023-02-04 11:39:58 +01:00
parent 892bb9d65a
commit ee7b74cd5d
2 changed files with 0 additions and 2 deletions

View File

@@ -227,7 +227,6 @@ const WaitlistPage = () => (
id: "wauPage",
config: {
autoSubmit: true,
addFieldsToCustomer: ["wau"],
},
elements: [
{

View File

@@ -68,7 +68,6 @@ export default async function handle(req: NextApiRequest, res: NextApiResponse)
},
data: { data: customerData },
});
return res.status(200).json({ message: "Submission updated" });
} else {
if ("email" in submission.customer) {
const customerEmail = submission.customer.email;