From 411386b51efe5e48f3185508a35847b6e9fa2549 Mon Sep 17 00:00:00 2001 From: Micha Date: Sat, 14 Jun 2025 15:49:37 +0200 Subject: [PATCH] fix(logo): update warning message for missing width or height props --- src/components/misc/logo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/misc/logo.tsx b/src/components/misc/logo.tsx index 129adef..6d1d444 100644 --- a/src/components/misc/logo.tsx +++ b/src/components/misc/logo.tsx @@ -63,9 +63,9 @@ export default function Logo({ ); } - if (width === undefined || height === undefined) { + if (width === undefined && height === undefined) { console.warn( - `Logo: 'width' and 'height' props are required by next/image for ${logoType} logo. Path: ${LOGO_BASE_PATH}logo_${colorType}_${logoType}_${theme}.${IMAGE_EXTENSION}`, + `Logo: 'width' or 'height' props are required by next/image for ${logoType} logo. Path: ${LOGO_BASE_PATH}logo_${colorType}_${logoType}_${theme}.${IMAGE_EXTENSION}`, ); }