fix(appointment): update display logic for inactive doctors and free turns

This commit is contained in:
hamed
2026-06-22 09:47:11 +03:30
parent 12d2e2e3f1
commit a83e352dd8
4 changed files with 215 additions and 18 deletions
+3 -1
View File
@@ -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 */}