fix(appointment): use existing doctor image as fallback

The appointment info/location headers fell back to /default-doctor.jpg,
which does not exist in public/, so the Next image optimizer returned
400 for doctors without a photo. Point the fallback at the existing
/assets/images/doctor.png (same default used on the doctor page).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-15 15:49:45 +03:30
co-authored by Claude Opus 4.8
parent 81121ad7d7
commit 1196aa64c6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { imageUrl } from "@/helper";
function Head({ doctor }) {
// تبدیل img array به string
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/default-doctor.jpg");
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/assets/images/doctor.png");
// تبدیل specialties array به string
const expertiseText = doctor?.specialties
+1 -1
View File
@@ -3,7 +3,7 @@ import { imageUrl } from "@/helper";
function Head({ doctor }) {
// تبدیل img array به string
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/default-doctor.jpg");
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/assets/images/doctor.png");
// تبدیل specialties array به string
const expertiseText = doctor?.specialties