Skip to content

Commit

Permalink
Remove date replacement, still need to test against latest update
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 committed Jun 3, 2024
1 parent bb292f3 commit 534e59d
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 @@ -177,8 +177,7 @@ export function CircularEditForm({
subject.trim() !== defaultSubject.trim() ||
format !== defaultFormat ||
defaultSubmitter !== submitter?.trim() ||
(date && date.replace(/(\d{2})\/(\d{2})\/(\d{4})/, '$3-$1-$2')) !==
defaultCreatedOnDate ||
date !== defaultCreatedOnDate ||
time !== defaultCreatedOnTime

const userIsModerator = useModStatus()

Check warning on line 183 in app/routes/circulars.edit.$circularId/CircularEditForm.tsx

View check run for this annotation

Codecov / codecov/patch

app/routes/circulars.edit.$circularId/CircularEditForm.tsx#L183

Added line #L183 was not covered by tests
Expand Down Expand Up @@ -240,6 +239,7 @@ export function CircularEditForm({
}}
name="createdOnDate"
id="createdOnDate"
dateFormat="YYYY-MM-DD"
/>
</InputGroup>
<InputGroup className="tablet:grid-col-auto">
Expand Down

0 comments on commit 534e59d

Please sign in to comment.