web: note when submissions list is loaded but empty
This commit is contained in:
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>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user