From 9db252102c80226527876d4600763f105ca5c451 Mon Sep 17 00:00:00 2001 From: Pavel Meyer Date: Tue, 16 Jul 2024 17:19:01 +0300 Subject: [PATCH] CW-crash-backpage Added condition for empty joinedAt --- .../MembersComponent/CommonMemberComponent.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pages/OldCommon/components/CommonDetailContainer/MembersComponent/CommonMemberComponent.tsx b/src/pages/OldCommon/components/CommonDetailContainer/MembersComponent/CommonMemberComponent.tsx index 95d73d6fc..ef49ccc24 100644 --- a/src/pages/OldCommon/components/CommonDetailContainer/MembersComponent/CommonMemberComponent.tsx +++ b/src/pages/OldCommon/components/CommonDetailContainer/MembersComponent/CommonMemberComponent.tsx @@ -122,11 +122,13 @@ const CommonMember: FC = ({ -
- {joinedAt - .toDate() - .toLocaleDateString("en-US", { month: "short", day: "numeric" })} -
+ {joinedAt && ( +
+ {joinedAt + ?.toDate() + .toLocaleDateString("en-US", { month: "short", day: "numeric" })} +
+ )}