fix(logo): update warning message for missing width or height props
This commit is contained in:
parent
07be9a02b6
commit
411386b51e
1 changed files with 2 additions and 2 deletions
|
@ -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}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue