|
|
@ -1394,6 +1394,8 @@ export class PortfolioService {
|
|
|
|
}: {
|
|
|
|
}: {
|
|
|
|
holdings: PortfolioDetails['holdings'];
|
|
|
|
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 }) => {
|
|
|
|
const emergencyFundHoldings = Object.values(holdings).filter(({ tags }) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
tags?.some(({ id }) => {
|
|
|
|
tags?.some(({ id }) => {
|
|
|
|