The personal finance app for everyone
fix: Format budget estimated income and spending with two decimal places
Josh Pigford78e34d68e9af
diff --git a/app/views/budgets/edit.html.erb b/app/views/budgets/edit.html.erbindex c43acc5b..f3a9854e 100644--- a/app/views/budgets/edit.html.erb+++ b/app/views/budgets/edit.html.erb@@ -32,8 +32,8 @@<div class="relative inline-block select-none ml-6"><%= check_box_tag :auto_fill, "1", params[:auto_fill].present?, class: "sr-only peer", data: {action: "change->budget-form#toggleAutoFill",- budget_form_income_param: { key: "budget_expected_income", value: @budget.estimated_income },- budget_form_spending_param: { key: "budget_budgeted_spending", value: @budget.estimated_spending }+ budget_form_income_param: { key: "budget_expected_income", value: sprintf("%.2f", @budget.estimated_income) },+ budget_form_spending_param: { key: "budget_budgeted_spending", value: sprintf("%.2f", @budget.estimated_spending) }} %><label for="auto_fill" class="maybe-switch"></label></div>