adjusted events view to only show the availability selector, when a user can do at least one task of the event

This commit is contained in:
z1glr
2025-02-07 11:28:14 +00:00
parent bc9deb5496
commit 353f51f2ae
8 changed files with 65 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ export default function Event({
{Array.isArray(children) ? children[0] : children}
</CardBody>
{Array.isArray(children) ? (
{Array.isArray(children) && !!children[1] ? (
<>
<Divider />
<CardFooter>{children[1]}</CardFooter>