Skip to content

Commit

Permalink
Fix the amount validation for income form
Browse files Browse the repository at this point in the history
  • Loading branch information
p-litwin committed Jan 12, 2024
1 parent 79df712 commit a141133
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions public/js/transaction-modals/TransactionEditModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ export class TransactionEditModal {

transactionAmountValidationRules = {
required: true,
number: true,
step: 0.01,
pattern: /^(\d+(?:[\.\,]\d{1,2})?)$/,
messages: {
number: "To nie jest liczba.",
required: "Pole nie może być puste.",
pattern: "Wymagany format: 0,00.",
step: "Wymagany format: 0,00."
Expand Down

0 comments on commit a141133

Please sign in to comment.