Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
iaron committed Apr 6, 2020
1 parent 9f0334a commit b9fa278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/components/ProductSummaryImage/ProductImage.js
Expand Up @@ -53,8 +53,8 @@ const findImageByLabel = (images, selectedLabel) => {
const getImageSrc = (src, width, height, dpi, aspectRatio) => {
if (width || height) {
return changeImageUrlSize(src, width * dpi, height * dpi)
} else if (aspectRatio !== 'auto' && width) {
return imageUrl(src, width, MAX_SIZE, aspectRatio)
} else if (aspectRatio !== 'auto') {
return imageUrl(src, DEFAULT_SIZE, MAX_SIZE, aspectRatio)
} else {
return src
}
Expand Down

0 comments on commit b9fa278

Please sign in to comment.