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 07be9a02b6
commit 411386b51e

View file

@ -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}`,
);
}