Skip to content

Commit a9848c0

Browse files
committed
address the code raddit suggestions
1 parent a6e2266 commit a9848c0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/components/Patient/BookAppointment/BookingForm.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const BookingForm = ({
8080
</div>
8181

8282
{/* Teleconsultation Option */}
83-
{doctor.availableForTeleconsultation && (
83+
{doctor?.availableForTeleconsultation && (
8484
<div className="flex items-center">
8585
<input
8686
id="teleconsultation"
@@ -101,7 +101,7 @@ const BookingForm = ({
101101
selectedDate={selectedDate}
102102
selectedSlot={selectedSlot}
103103
isTeleconsultation={isTeleconsultation}
104-
consultationFee={doctor.consultationFee}
104+
consultationFee={doctor?.consultationFee}
105105
/>
106106
)}
107107

client/src/components/Patient/BookAppointment/TimeSlotSelection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const TimeSlotSelection = ({ availableSlots, selectedSlot, setSelectedSlot }) =>
88
Available Time Slots
99
</label>
1010
<div className="grid grid-cols-4 sm:grid-cols-6 gap-3">
11-
{availableSlots.map((slot) => (
11+
{availableSlots?.map((slot) => (
1212
<button
1313
key={slot}
1414
type="button"

0 commit comments

Comments
 (0)