From 87e644db5cb4bd5431724323c894f08b8c06c214 Mon Sep 17 00:00:00 2001 From: "bitbuilder-ai[bot]" <65095814+bitbuilder-ai[bot]@users.noreply.github.com> Date: Sun, 24 Sep 2023 19:18:13 +0000 Subject: [PATCH] implement #5; --- src/components/home/DashboardMode.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/home/DashboardMode.tsx b/src/components/home/DashboardMode.tsx index 811034f..ea61c74 100644 --- a/src/components/home/DashboardMode.tsx +++ b/src/components/home/DashboardMode.tsx @@ -159,11 +159,13 @@ export default function DashboardMode(props: { user: User | null }) { ) : null} -

- {responsesForThisForm.length === 0 - ? 'No responses yet' - : responsesForThisForm.length + ' responses'} -

+

+ {responsesForThisForm.length === 0 + ? 'No responses yet' + : responsesForThisForm.length === 1 + ? '1 response' + : responsesForThisForm.length + ' responses'} +

); @@ -173,4 +175,4 @@ export default function DashboardMode(props: { user: User | null }) { ); } -} +} \ No newline at end of file