Skip to content

Commit

Permalink
remove check for invalid image height/width since we'll always pass a…
Browse files Browse the repository at this point in the history
…n image
  • Loading branch information
kadiealexander committed Jul 31, 2023
1 parent 09872e5 commit 2ea290c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/ThumbnailImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ const defaultProps = {
*/

function calculateThumbnailImageSize(width, height, windowHeight) {
if (!width || !height) {
return {thumbnailWidth: 200, thumbnailHeight: 200};
}

// Width of the thumbnail works better as a constant than it does
// a percentage of the screen width since it is relative to each screen
// Note: Clamp minimum width 40px to support touch device
Expand Down

0 comments on commit 2ea290c

Please sign in to comment.