Skip to content

Commit

Permalink
fix(transaction) allow-decimals-transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavSokov committed Dec 1, 2023
1 parent 8323fb0 commit 2454b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/spends/_modal.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.field.mt-2
= f.label :amount, "Amount to be deducted"
.field.is-relative
= f.text_field :amount, autofocus: true, type: 'number', min: '1', class: 'input amount', required: true
= f.text_field :amount, autofocus: true, type: 'number', step: 0.1, min: 0.1, class: 'input amount', required: true
= link_to 'All Balance', '#', class: 'button is-small is-light all-balance-button'
.field
= f.label :description, "Description (optional)"
Expand Down
2 changes: 1 addition & 1 deletion app/views/topups/_modal.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.field.mt-2
= f.label :amount, "Amount to be added"
.field
= f.text_field :amount, autofocus: true, type: 'number', min: '1', class: "input", required: true
= f.text_field :amount, autofocus: true, type: 'number', step: 0.1, min: 0.1, class: "input", required: true
.field
= f.label :description, "Description (optional)"
.field
Expand Down

0 comments on commit 2454b77

Please sign in to comment.