diff --git a/18-expenses-chart/templates/index.templ b/18-expenses-chart/templates/index.templ index 448a95f..dac9b43 100644 --- a/18-expenses-chart/templates/index.templ +++ b/18-expenses-chart/templates/index.templ @@ -11,10 +11,10 @@ type PageData struct { } templ myBalanceComponent(balance float32) { -
${ fmt.Sprintf("%.2f", balance) }
+${ fmt.Sprintf("%.2f", balance) }
Total this month
$ { fmt.Sprintf("%.2f", totalThisMonth) }
+$ { fmt.Sprintf("%.2f", totalThisMonth) }
{ fmt.Sprintf("%.2f", percentComparedToLastMonth) }%
@@ -90,6 +90,13 @@ templ spendingSummaryComponent(expenses, percentages []float32, currentDayNum in