diff --git a/components/AppealCard.tsx b/components/AppealCard.tsx index 4bf3757..28878b0 100644 --- a/components/AppealCard.tsx +++ b/components/AppealCard.tsx @@ -127,7 +127,9 @@ export default function (props: AppealCardProps & { port?: MessagePort }) { - + diff --git a/components/InactivityNoticeCard.tsx b/components/InactivityNoticeCard.tsx index 5eb37a4..5d2c04b 100644 --- a/components/InactivityNoticeCard.tsx +++ b/components/InactivityNoticeCard.tsx @@ -94,11 +94,13 @@ export default function ( ) : null} - {props.decisions ? ( + {Object.keys(props.decisions as { [k: string]: boolean }).length ? ( Decisions - {Object.entries(props.decisions).map(([dept, accepted]) => ( + {Object.entries( + props.decisions as { [k: string]: boolean }, + ).map(([dept, accepted]) => ( {dept}:  @@ -111,7 +113,19 @@ export default function ( ) : null} - +