Skip to content

Commit

Permalink
(fix):O3-3611-Disable automatic selection of upcoming appointment (#1231
Browse files Browse the repository at this point in the history
)
  • Loading branch information
makombe authored Jul 16, 2024
1 parent 20499f9 commit 83ff7c4
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 83ff7c4

Please sign in to comment.