mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 04:54:11 +00:00
Allow 2 decimals when adding a balance (#614)
This commit is contained in:
@@ -36,7 +36,8 @@ class ApplicationFormBuilder < ActionView::Helpers::FormBuilder
|
||||
default_options = {
|
||||
class: "form-field__input",
|
||||
value: money&.amount,
|
||||
placeholder: Money.new(0, money&.currency || Money.default_currency).format
|
||||
placeholder: Money.new(0, money&.currency || Money.default_currency).format,
|
||||
step: "0.01" # Not all currencies have 2 decimal places
|
||||
}
|
||||
|
||||
merged_options = default_options.merge(options)
|
||||
|
||||
Reference in New Issue
Block a user