Files
backend/src/modules/investments/portfolio/domain/complete-valuation.ts
T
codex-bot 809936e62d
Backend verify / commits (push) Skipped
Backend verify / security (push) Successful in 1m32s
Backend verify / verify (push) Failing after 9m25s
refactor!: support RUB only (WealthLedger/main#55) (#204)
BREAKING CHANGE: per-currency API fields replaced with single RUB Money.
2026-11-11 10:07:11 +03:00

12 lines
282 B
TypeScript

type Valuation = {
positions: { currentValue: unknown }[];
totals: { value: string };
};
export function isCompleteValuation(
snapshot: Valuation,
): boolean {
return Boolean(snapshot.totals) &&
snapshot.positions.every((position) => position.currentValue !== null);
}