Refactor getCashPositions() in portfolio service (#4800)

* Refactor getCashPositions()
pull/4846/head
Thomas Kaul 12 months ago committed by GitHub
parent c318e0019e
commit 1dd3857618
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -542,7 +542,7 @@ export class PortfolioService {
}
if (filters?.length === 0 || isFilteredByAccount || isFilteredByCash) {
const cashPositions = await this.getCashPositions({
const cashPositions = this.getCashPositions({
cashDetails,
userCurrency,
value: filteredValueInBaseCurrency
@ -567,7 +567,7 @@ export class PortfolioService {
filters[0].id === TAG_ID_EMERGENCY_FUND &&
filters[0].type === 'TAG'
) {
const emergencyFundCashPositions = await this.getCashPositions({
const emergencyFundCashPositions = this.getCashPositions({
cashDetails,
userCurrency,
value: filteredValueInBaseCurrency
@ -1535,7 +1535,7 @@ export class PortfolioService {
return { markets, marketsAdvanced };
}
private async getCashPositions({
private getCashPositions({
cashDetails,
userCurrency,
value

Loading…
Cancel
Save