diff --git a/app/ui/AddLocationButton.tsx b/app/ui/AddLocationButton.tsx index 7e6f2d3..52b408e 100644 --- a/app/ui/AddLocationButton.tsx +++ b/app/ui/AddLocationButton.tsx @@ -21,7 +21,7 @@ export const AddLocationButton:React.FC = ({yearMonth}) - {t("tooltip")} + {t("tooltip")} 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 diff --git a/app/ui/PrintButton.tsx b/app/ui/PrintButton.tsx index fae97a7..93b99a8 100644 --- a/app/ui/PrintButton.tsx +++ b/app/ui/PrintButton.tsx @@ -24,7 +24,7 @@ export const PrintButton: React.FC = ({ yearMonth }) => { > - {t("print-codes-label")} + {t("print-codes-label")}
diff --git a/docker-compose-debug.yml b/docker-compose-debug.yml index 2040bf1..4fd6dc5 100644 --- a/docker-compose-debug.yml +++ b/docker-compose-debug.yml @@ -13,7 +13,7 @@ services: - 27017:27017 environment: MONGO_INITDB_ROOT_USERNAME: root - MONGO_INITDB_ROOT_PASSWORD: example + MONGO_INITDB_ROOT_PASSWORD: HjktJCPWMBtM1ACrDaw7 volumes: - ./mongo-volume:/data/db mongo-express: