Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Jan 10, 2025
1 parent face854 commit e2ea2e8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ const StartVisitForm: React.FC<StartVisitFormProps> = ({
return [null, null];
}

const allEncountersDateTime = visitToEdit?.encounters?.map(({ encounterDatetime }) =>
const allEncounterDatetimes = visitToEdit?.encounters?.map(({ encounterDatetime }) =>
Date.parse(encounterDatetime),
);
const maxVisitStartDatetime = Math.min(...allEncountersDateTime);
const minVisitStopDatetime = Math.max(...allEncountersDateTime);
const maxVisitStartDatetime = Math.min(...allEncounterDatetimes);
const minVisitStopDatetime = Math.max(...allEncounterDatetimes);
return [maxVisitStartDatetime, minVisitStopDatetime];
}, [visitToEdit]);

Expand Down

0 comments on commit e2ea2e8

Please sign in to comment.