Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Client-side validation for Decimal precision of 19,4 (#821)

Zach Gollwitzerbcbb37a14604
diff --git a/app/helpers/application_form_builder.rb b/app/helpers/application_form_builder.rb
index 3292a1c6..dc3df84b 100644
--- a/app/helpers/application_form_builder.rb
+++ b/app/helpers/application_form_builder.rb
@@ -39,6 +39,8 @@ class ApplicationFormBuilder < ActionView::Helpers::FormBuilder
value: money&.amount,
"data-money-field-target" => "amount",
placeholder: Money.new(0, currency).format,
+ min: -99999999999999,
+ max: 99999999999999,
step: currency.step
}