fix: separate portfolio cash presentation

This commit is contained in:
2026-09-09 16:44:57 +03:00
parent bcc034f198
commit 3017fc810e
8 changed files with 181 additions and 62 deletions
+5 -1
View File
@@ -202,7 +202,11 @@ function toSection(
.filter((position) => {
if (kind === "stocks") return position.type === "STOCK";
if (kind === "bonds") return position.type === "BOND";
return position.type !== "STOCK" && position.type !== "BOND";
return (
position.type !== "STOCK" &&
position.type !== "BOND" &&
position.type !== "CURRENCY"
);
})
.map((position) => toPosition(position, denominators, kind)),
};