fix(appointment): update display logic for inactive doctors and free turns
This commit is contained in:
@@ -88,7 +88,9 @@ function ItemDoctor({ doctor, loading, setDoctors, priority = false }) {
|
||||
: "bg-[rgba(211,_47,_47,_0.04)] text-[#D32F2F]"
|
||||
}`}
|
||||
>
|
||||
{doctor?.free_turn}
|
||||
{Number(doctor?.active) && doctor?.free_turn
|
||||
? `اولین نوبت آزاد: ${doctor.free_turn}`
|
||||
: "نوبتدهی غیرفعال است"}
|
||||
</p>
|
||||
</CustomLoading>
|
||||
{/* Arrow */}
|
||||
|
||||
Reference in New Issue
Block a user