Enforce integer-only values for rent amount field
- Add .int() validation to rentAmount in FormSchema - Remove decimal formatting (was dividing by 100) - Change min value from 0 to 1 - Add right text alignment for better numeric display - Add localization for integer validation error message 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -164,6 +164,7 @@
|
||||
"tenant-email-required": "tenant email is missing",
|
||||
"tenant-email-invalid": "email address is invalid",
|
||||
"rent-amount-required": "rent amount is required when rent notification is enabled",
|
||||
"rent-amount-integer": "rent amount must be a whole number (no decimal places)",
|
||||
"rent-amount-positive": "rent amount must be a positive number",
|
||||
"validation-failed": "Validation failed. Please check the form and try again."
|
||||
}
|
||||
|
||||
@@ -163,6 +163,7 @@
|
||||
"tenant-email-required": "nedostaje email podstanara",
|
||||
"tenant-email-invalid": "email adresa nije ispravna",
|
||||
"rent-amount-required": "iznos najamnine je obavezan kada je uključena obavijest o najamnini",
|
||||
"rent-amount-integer": "iznos najamnine mora biti cijeli broj (bez decimalnih mjesta)",
|
||||
"rent-amount-positive": "iznos najamnine mora biti pozitivan broj",
|
||||
"validation-failed": "Validacija nije uspjela. Molimo provjerite formu i pokušajte ponovno."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user