From 1196aa64c697117cbe841f909c2b560f83e20e13 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Mon, 15 Jun 2026 15:49:45 +0330 Subject: [PATCH] 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 --- components/appointment/information/Head.js | 2 +- components/appointment/location/Head.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/appointment/information/Head.js b/components/appointment/information/Head.js index 76a84e3..efcf52b 100644 --- a/components/appointment/information/Head.js +++ b/components/appointment/information/Head.js @@ -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 diff --git a/components/appointment/location/Head.js b/components/appointment/location/Head.js index a8a4dfa..d578e4d 100644 --- a/components/appointment/location/Head.js +++ b/components/appointment/location/Head.js @@ -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