From 39fbdab93ce34b781177dbf8774398b13d288610 Mon Sep 17 00:00:00 2001 From: Pedro De Castro <1519428+snaow@users.noreply.github.com> Date: Sat, 9 Nov 2024 19:50:54 +0100 Subject: [PATCH] fix(company_name): Getting the value from form. Avoid send empty values --- actions/auth/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/auth/auth.ts b/actions/auth/auth.ts index 2d7852e1e4..3b7195688a 100644 --- a/actions/auth/auth.ts +++ b/actions/auth/auth.ts @@ -63,9 +63,11 @@ export const createNewUser = async ( name: formData.name, email: formData.email, password: formData.password, + ...(formData.company && { company_name: formData.company }), }, }, }; + try { const response = await fetch(url.toString(), {