From 00b6e35aa89270da20256e82f6d02e193042d75b Mon Sep 17 00:00:00 2001 From: Carl Date: Mon, 14 Aug 2023 16:26:52 +0800 Subject: [PATCH] fix: registering company account issues --- apps/storefront/src/shared/service/b2b/graphql/register.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/storefront/src/shared/service/b2b/graphql/register.ts b/apps/storefront/src/shared/service/b2b/graphql/register.ts index ea6e4cdc..a312aeca 100644 --- a/apps/storefront/src/shared/service/b2b/graphql/register.ts +++ b/apps/storefront/src/shared/service/b2b/graphql/register.ts @@ -101,7 +101,11 @@ const createCompanyUser = (data: any) => `mutation{ ? `extraFields: ${convertArrayToGraphql(data.extraFields)}` : '' } - fileList: ${convertArrayToGraphql(data.fileList)} + ${ + data?.fileList + ? `extraFields: ${convertArrayToGraphql(data.fileList)}` + : '' + } channelId: ${data.channelId || 1} ${ data?.addressExtraFields