Skip to content

Commit

Permalink
Update src/components/ImageWithSizeCalculation.js
Browse files Browse the repository at this point in the history
Co-authored-by: Aldo Canepa Garay <[email protected]>
Signed-off-by: Thomas Coldwell <[email protected]>
  • Loading branch information
thomas-coldwell and aldo-expensify committed Nov 11, 2022
1 parent 9020cb3 commit 98c2590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImageWithSizeCalculation.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ImageWithSizeCalculation extends PureComponent {
}

imageLoadedSuccessfuly(event) {
if (!event?.nativeEvent?.width || !event?.nativeEvent?.height) {
if (!lodashGet(event, 'nativeEvent.width', false) || !lodashGet(event, 'nativeEvent.height', false)) {
// Image didn't load properly
return;
}
Expand Down

0 comments on commit 98c2590

Please sign in to comment.