|
@@ -1513,9 +1513,9 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
|
|
|
yoy = (totalMoneySlice[i] + totalMoneySlice[i-1] + totalMoneySlice[i-2]) / 3
|
|
|
yoyStr = fmt.Sprintf("%.4f", yoy)
|
|
|
yoySlice = append(yoySlice, yoyStr)
|
|
|
+ } else {
|
|
|
+ yoySlice = append(yoySlice, "")
|
|
|
}
|
|
|
- yoyStr = fmt.Sprintf("%.4f", yoy)
|
|
|
- yoySlice = append(yoySlice, yoyStr)
|
|
|
}
|
|
|
}
|
|
|
}
|