Skip to content

Commit

Permalink
refine the cirteria for error or success class on date string
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 committed Jun 11, 2024
1 parent 836359d commit 0976944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/circulars.edit.$circularId/CircularEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ export function CircularEditForm({
className={classnames(
'tablet:margin-right-1 tablet:grid-col-auto',
{
'usa-input--error': !date,
'usa-input--success': date,
'usa-input--error': !date || !Date.parse(date),
'usa-input--success': date && Date.parse(date),
}
)}
>
Expand Down

0 comments on commit 0976944

Please sign in to comment.