Skip to content

Commit

Permalink
Merge pull request #33 from makombe/upcoming-appointment
Browse files Browse the repository at this point in the history
(fix):O3-3611-Disable automatic selection of upcoming appointment (#1
  • Loading branch information
makombe authored Jul 17, 2024
2 parents 15c5e1a + c729989 commit 5da523f
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ const PatientUpcomingAppointmentsCard: React.FC<PatientUpcomingAppointmentsProps
.concat(futureAppointments)
.filter((appointment) => appointment.status !== 'CheckedIn');

useEffect(() => {
if (appointments.length === 1) {
setSelectedAppointment(appointments[0]);
setUpcomingAppointment(appointments[0]);
}
}, [appointments]);

const handleRadioChange = (appointment: Appointment) => {
setSelectedAppointment(appointment);
setUpcomingAppointment(appointment);
Expand Down

0 comments on commit 5da523f

Please sign in to comment.