diff --git a/packages/nextjs/app/admin/_components/SubmissionTabs.tsx b/packages/nextjs/app/admin/_components/SubmissionTabs.tsx index c0bcade..8297d21 100644 --- a/packages/nextjs/app/admin/_components/SubmissionTabs.tsx +++ b/packages/nextjs/app/admin/_components/SubmissionTabs.tsx @@ -87,9 +87,15 @@ export const SubmissionTabs = ({ submissions }: { submissions: Submission[] }) = />
- {voted.map(submission => ( - - ))} + {voted.length === 0 ? ( +
+ You have not voted on any submissions yet. +
+ ) : ( + voted + .sort((a, b) => b.avgScore - a.avgScore) + .map(submission => ) + )}
@@ -105,11 +111,15 @@ export const SubmissionTabs = ({ submissions }: { submissions: Submission[] }) = />
- {all - .sort((a, b) => b.avgScore - a.avgScore) - .map(submission => ( - - ))} + {all.length === 0 ? ( +
+ There are no submissions yet. +
+ ) : ( + all + .sort((a, b) => b.avgScore - a.avgScore) + .map(submission => ) + )}