Skip to content

Commit

Permalink
required attrib based on requiredText
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGoC committed Mar 3, 2025
1 parent a3b843f commit 5fcd5f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/components/CurrencyField.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ describe('CurrencyField component', () => {
const props = {
name: 'income',
label: 'What is your annual net income?',
required: true,
requiredText: 'Required',
}

const ui = (
<CurrencyField
name={props.name}
label={props.label}
required={props.required}
requiredText={props.requiredText}
/>
)

Expand All @@ -54,15 +54,15 @@ describe('CurrencyField component', () => {
name: 'income',
label: 'What is your annual net income?',
error: 'This field is required.',
required: true,
requiredText: 'Required',
}

const ui = (
<CurrencyField
name={props.name}
label={props.label}
error={props.error}
required={props.required}
requiredText={props.requiredText}
/>
)

Expand Down

0 comments on commit 5fcd5f5

Please sign in to comment.