Skip to content

Commit

Permalink
Merge branch 'master' into deti-update-wording
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekVigas authored Feb 21, 2024
2 parents 9c38813 + 5fd7b2c commit cf3c9e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/pages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ describe('Children page', () => {

cy.get('[data-test="children[0].priezviskoMeno-input"]').type("John Doe")

cy.get('[data-test="children[0].rodneCislo-input"]').type('9709077708')
cy.get('[data-test="children[0].rodneCislo-input"]').type('980912/2532')
cy.contains('Daňový bonus si môžete uplatniť v mesiacoch Január až September')
cy.get('[data-test="children[0].monthFrom-select"]>option').should('have.length', 9)
cy.get('[data-test="children[0].monthTo-select"]>option').should('have.length', 9)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const validateRodneCislo = (value: string): boolean => {

export const maxChildAgeBonusMonth = (rodneCislo: string, month: string): boolean => {
return (
getRodneCisloAgeAtYearAndMonth(rodneCislo.replace(' / ', ''), TAX_YEAR, monthToKeyValue(month).value) <= MAX_CHILD_AGE_BONUS
getRodneCisloAgeAtYearAndMonth(rodneCislo.replace(' / ', ''), TAX_YEAR, monthToKeyValue(month).value) < MAX_CHILD_AGE_BONUS
)
}
export const minChildAgeBonusMonth = (rodneCislo: string, month: string): boolean => {
Expand Down

0 comments on commit cf3c9e5

Please sign in to comment.