diff --git a/src/app/(dashboard)/jobs/[jobId]/page.tsx b/src/app/(dashboard)/jobs/[jobId]/page.tsx
index d7cd44c..717f838 100644
--- a/src/app/(dashboard)/jobs/[jobId]/page.tsx
+++ b/src/app/(dashboard)/jobs/[jobId]/page.tsx
@@ -100,10 +100,13 @@ export default async function JobDetailPage({
{counterpartLabel}: {counterpart?.companyName ?? "—"}
- {patient ? `${patient.firstName} ${patient.lastName}` : `Hasta ${job.patientCode}`}
+ {(() => {
+ const name = [patient?.firstName, patient?.lastName].filter(Boolean).join(" ");
+ return name || `Hasta ${job.patientCode}`;
+ })()}
- {patient && (
+ {patient && (patient.firstName || patient.lastName) && (
<>
{job.patientCode} ·{" "}
>
@@ -211,18 +214,15 @@ export default async function JobDetailPage({
dışında bir veri görmez.
-
+
- {patient.firstName} {patient.lastName}
+ {[patient.firstName, patient.lastName].filter(Boolean).join(" ") || "—"}
- {patient.phone || "—"}
-
- {patient.dateOfBirth
- ? dateFormatter.format(new Date(patient.dateOfBirth))
- : "—"}
+
+ {patient.patientCode}
{patient.notes && (
-
+
Notlar
diff --git a/src/app/(dashboard)/patients/components/patient-form.tsx b/src/app/(dashboard)/patients/components/patient-form.tsx
index 79ea77c..b08df4b 100644
--- a/src/app/(dashboard)/patients/components/patient-form.tsx
+++ b/src/app/(dashboard)/patients/components/patient-form.tsx
@@ -8,6 +8,7 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Textarea } from "@/components/ui/textarea";
+
import { createPatientAction } from "@/lib/appwrite/patient-actions";
import { initialPatientFormState } from "@/lib/appwrite/patient-types";
@@ -48,38 +49,21 @@ export function PatientForm() {
-
-
+
+
{state.fieldErrors?.firstName && (
{state.fieldErrors.firstName}
)}
-
-
+
+
{state.fieldErrors?.lastName && (
{state.fieldErrors.lastName}
)}
-
-
-
-
-
-
-
-
-
-