From 7131a4e7d3a7edea2f38a205d7356a282e39ba32 Mon Sep 17 00:00:00 2001 From: BlankParticle Date: Wed, 21 Aug 2024 18:48:55 +0530 Subject: [PATCH] fix: profile logic issue --- apps/platform/trpc/routers/userRouter/profileRouter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/platform/trpc/routers/userRouter/profileRouter.ts b/apps/platform/trpc/routers/userRouter/profileRouter.ts index 7340a1ea..8d0ca5be 100644 --- a/apps/platform/trpc/routers/userRouter/profileRouter.ts +++ b/apps/platform/trpc/routers/userRouter/profileRouter.ts @@ -153,7 +153,7 @@ export const profileRouter = router({ .set({ name: `${firstName}'s Personal Space`, shortcode: validatedShortcode.shortcode, - description: `${firstName}${lastName?.length > 0 ? ' ' + lastName.join(' ') : ''}'s Personal Space` + description: `${firstName}${lastName?.length > 0 ? ' ' + lastName : ''}'s Personal Space` }) .where( eq(spaces.id, orgMemberProfileQuery.orgMember.personalSpaceId)