fix(logo): update warning message for missing width or height props

This commit is contained in:
micha 2025-06-14 15:49:37 +02:00
parent aebbfb9f5d
commit 25ebb4bb3b

View file

@ -63,9 +63,9 @@ export default function Logo({
); );
} }
if (width === undefined || height === undefined) { if (width === undefined && height === undefined) {
console.warn( 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}`,
); );
} }