Skip to content

Commit

Permalink
fix: Updated capture properties on country lookup (Greenstand#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankbucha authored Feb 20, 2022
1 parent 953cff0 commit de68427
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/CaptureMatching/CaptureImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { getDateTimeStringLocale } from 'common/locale';

function Country({ lat, lon }) {
const [content, setContent] = useState('');
if (lat === 'undefined' || lon === 'undefined') {
if (lat === undefined || lon === undefined) {
setContent('No data');
}

Expand Down Expand Up @@ -144,7 +144,10 @@ function CaptureImage(props) {
<Box className={classes.box3}>
<LocationOnOutlinedIcon />
<Typography variant="body1">
<Country lat={capture.lat} lon={capture.lon} />
<Country
lat={capture.latitude}
lon={capture.longitude}
/>
</Typography>
</Box>
</Box>
Expand Down

0 comments on commit de68427

Please sign in to comment.