Skip to content

Commit abbd2a6

Browse files
update height validation
1 parent 1f3ae40 commit abbd2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/utils/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function validateCustomViewPorts(customViewports) {
255255
if (width && width < MIN_RESOLUTION_WIDTH || width > MAX_RESOLUTION_WIDTH) {
256256
throw new ValidationError(`customViewports.styles width must be > ${MIN_RESOLUTION_WIDTH}, < ${MAX_RESOLUTION_WIDTH}`);
257257
}
258-
if (height && (height < MIN_RESOLUTION_HEIGHT || height > MIN_RESOLUTION_HEIGHT)) {
258+
if (height && (height < MIN_RESOLUTION_HEIGHT || height > MAX_RESOLUTION_HEIGHT)) {
259259
throw new ValidationError(`customViewports.styles height must be > ${MIN_RESOLUTION_HEIGHT}, < ${MAX_RESOLUTION_HEIGHT}`);
260260
}
261261
element.styles.width = width;

0 commit comments

Comments
 (0)