Skip to content

Commit

Permalink
implement #5;
Browse files Browse the repository at this point in the history
  • Loading branch information
ellipsis-dev[bot] authored Sep 24, 2023
1 parent fa9cc51 commit 87e644d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/home/DashboardMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,13 @@ export default function DashboardMode(props: { user: User | null }) {
</Link>
) : null}
</div>
<p className="mt-2 text-xs leading-5 text-gray-500 sm:mt-0">
{responsesForThisForm.length === 0
? 'No responses yet'
: responsesForThisForm.length + ' responses'}
</p>
<p className="mt-2 text-xs leading-5 text-gray-500 sm:mt-0">
{responsesForThisForm.length === 0
? 'No responses yet'
: responsesForThisForm.length === 1
? '1 response'
: responsesForThisForm.length + ' responses'}
</p>
</div>
</li>
);
Expand All @@ -173,4 +175,4 @@ export default function DashboardMode(props: { user: User | null }) {
</div>
);
}
}
}

0 comments on commit 87e644d

Please sign in to comment.