Browse Source

Fix positive performance from all time high

pull/8012/head
Thomas Kaul 2 weeks ago
parent
commit
0ecc4a94bd
  1. 5
      apps/api/src/app/endpoints/watchlist/watchlist.service.ts

5
apps/api/src/app/endpoints/watchlist/watchlist.service.ts

@ -140,8 +140,9 @@ export class WatchlistService {
name: assetProfile?.name, name: assetProfile?.name,
performances: { performances: {
allTimeHigh: { allTimeHigh: {
performancePercent, date: allTimeHigh?.date,
date: allTimeHigh?.date performancePercent:
performancePercent >= 0 ? 0 : performancePercent
} }
}, },
trend50d: trends.trend50d, trend50d: trends.trend50d,

Loading…
Cancel
Save