Minor reformatting.
All checks were successful
Build & Test / Main (push) Successful in 57s
Release / Release (push) Successful in 1m1s

This commit is contained in:
2024-03-21 00:17:29 -07:00
parent 19de412fc5
commit 80855a15a9
4 changed files with 353 additions and 343 deletions

View File

@@ -91,7 +91,10 @@ func (m *Math) Refresh(ctx context.Context) (err error) {
days := now.Sub(c.StartingDate).Hours() / 24
c.CDPR = CDPR(days, c.Gain)
if c.CDPR > 1 {
c.Projections = ProjectDates(now, float64(m.CurrentPrice), c.CDPR, m.Goals)
c.Projections = ProjectDates(
now, float64(m.CurrentPrice),
c.CDPR, m.Goals,
)
} else {
c.Projections.Dates = nil
}