Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Bliss authored and Jeff Bliss committed Aug 28, 2024
1 parent 177dd76 commit 6bae730
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/NDVIButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ export default function NDVIButtonWrapper(props) {
const response = await fetch(`${ndviEndpoint}?lat=${popupPosition[0]}&lng=${popupPosition[1]}`);
return await response.json();
},
enabled: !!popupPosition,
});

if (isPending) console.log('isPending');
if (isPending) console.log('NDVI Pending');
if (error) return 'An error has occurred: ' + error.message;

React.useEffect(() => {
Expand Down

0 comments on commit 6bae730

Please sign in to comment.