Feature/add todo for emergency fund positions value calculation (#3684)

* Add todo
This commit is contained in:
Thomas Kaul
2024-08-30 11:54:23 +02:00
committed by GitHub
parent 7a695f34f2
commit b794c4dcc8

View File

@@ -1394,6 +1394,8 @@ export class PortfolioService {
}: {
holdings: PortfolioDetails['holdings'];
}) {
// TODO: Use current value of activities instead of holdings
// tagged with EMERGENCY_FUND_TAG_ID
const emergencyFundHoldings = Object.values(holdings).filter(({ tags }) => {
return (
tags?.some(({ id }) => {