diff --git a/app/ui/LocationCard.tsx b/app/ui/LocationCard.tsx index e8352d1..bbb00f9 100644 --- a/app/ui/LocationCard.tsx +++ b/app/ui/LocationCard.tsx @@ -45,24 +45,27 @@ export const LocationCard: FC = ({ location, currency }) => {
- + -

{formatYearMonth(yearMonth)} {name}

-
- { - bills.map(bill => ) - } +

{formatYearMonth(yearMonth)} {name}

+ { + bills.length > 0 ? ( +
+ { + bills.map(bill => ) + } +
+ ) : null + } +
- {t("add-bill-button-tooltip")} + {t("add-bill-button-tooltip")} +
- - {monthlyExpense > 0 || seenByTenant || utilBillsProofOfPaymentUploadedAt ? <> -
{t("monthly-statement-legend")}
- - +
{t("monthly-statement-legend")}
{ monthlyExpense > 0 ?
@@ -93,7 +96,6 @@ export const LocationCard: FC = ({ location, currency }) => { : null } -
); }; \ No newline at end of file