{
Details.map((items) =>items.map((item1) => {
if (days[daynumber] === item1.U_AvailDays) {
doctorTime2(item1.LineId);
setDay(item1.U_AvailDays);
}})
);
}
I want to display available time slots on available days & hide timeslots on unavailable days This code works well for displaying available days time slots..I dont know what to do in the else part..ie when user clicks on non available days time slots should be hidden.