Skip to content

Commit bddca3e

Browse files
committed
Fixes
1 parent e40e55e commit bddca3e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/components/charts/chartHelper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const formatNumber = (value: number) => {
2121
/* eslint-disable @typescript-eslint/no-explicit-any */
2222
export const customToolTip = ({ payload, label, active }: any) => {
2323
if (active) {
24+
if (!payload || payload.length < 2) return <div>Fehler, bitte neu laden</div>;
2425
return (
2526
<div className="rounded-md bg-white/95 p-2 shadow-lg dark:bg-black/95">
2627
<p>{`Jahr: ${label}`}</p>

src/app/tilgungsTabelle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function Tilgungstabelle({
4141

4242
const getSondertilgung = (entry: ArmotizationEntry) => {
4343
const amount = entry.sondertilgung || "";
44-
return amount;
44+
return amount.toLocaleString("de");
4545
};
4646

4747
const handleSondertilgungSubmit = async (

0 commit comments

Comments
 (0)