web: note when submissions list is loaded but empty

This commit is contained in:
Quaternions 2025-03-18 12:32:48 -07:00
parent 91a72ccf8b
commit 49e767f027

@ -44,10 +44,18 @@ export default function SubmissionInfoPage() {
}, 50);
}, [])
if (!submissions || submissions.length == 0) {
if (!submissions) {
return <Webpage>
<main>
Loading...
Loading...
</main>
</Webpage>
}
if (submissions && submissions.length == 0) {
return <Webpage>
<main>
Submissions list is empty.
</main>
</Webpage>
}
@ -99,4 +107,4 @@ export default function SubmissionInfoPage() {
</main>
</Webpage>
)
}
}