diff --git a/src/pages/api/make_user.ts b/src/pages/api/make_user.ts index b196506c..5d9d7313 100644 --- a/src/pages/api/make_user.ts +++ b/src/pages/api/make_user.ts @@ -88,7 +88,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) { userId, email: email.toLowerCase(), name: req.body.name, - passport_id, + ...(!!passport_id ? {passport_id} : {}), }); if (type === "corporate") {