Skip to content

Commit 9c2a469

Browse files
committed
Fixed incorrect check that interpret 0 as falsy value
1 parent 8da663d commit 9c2a469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpack/imgproxyUrlBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const getImgproxyUrlBuilder = ({
3434

3535
return pixelRatios.reduce((acc, item) => {
3636
const dprResize = compressionsRatio[item];
37-
if (dprResize) {
37+
if (dprResize !== undefined) {
3838
acc[item] = buildImgproxyUrl(imagePath, dprResize, extension);
3939
}
4040
return acc;

0 commit comments

Comments
 (0)