Skip to content

Commit 863cfa4

Browse files
author
Daniel Morse
committed
fix: image data filter, change to greater than or equal to, was filtering out exact matches
1 parent 32dc88f commit 863cfa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/build-tools/tasks/image-tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async function processImage(file, set) {
116116

117117
// We add `null` to beginning b/c we want the original file too
118118
// Filter the list to not include sizes bigger than our file
119-
const sizes = [null, ...boltImageSizes].filter(size => width > size);
119+
const sizes = [null, ...boltImageSizes].filter(size => width >= size);
120120

121121
// looping through all sizes and resizing
122122
return Promise.all(

0 commit comments

Comments
 (0)