fix feed initial balance and report button

This commit is contained in:
Alberto-Audrix committed 2026-09-01 08:38:16 +07:00
1 parent 30a736641f
commit 569d7c6bb6
9 files changed
+135 -24

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ import { formatNumber } from '../../utils/format.ts';
interface InitialBalanceCardProps {
cycle: Cycle;
onSaved: () => void;
onSaved: (result: InitialBalanceResult) => void;
}
const InitialBalanceCard: React.FC<InitialBalanceCardProps> = ({ cycle, onSaved }) => {
@@ -32,7 +32,7 @@ const InitialBalanceCard: React.FC<InitialBalanceCardProps> = ({ cycle, onSaved
feed_in_manual: Number(manualEntry),
});
setResult(saved);
onSaved();
onSaved(saved);
} catch (err) {
setError(errorMessage(err));
} finally {