Skip to content

Commit

Permalink
Fix comments and console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup committed Dec 16, 2024
1 parent 91d6e49 commit 87e1ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/components/app/responsive-webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class ResponsiveWebapp extends Component {

// Check if the position has changed enough to update the currentPosition
// (prevent constant updates in nearby view)
// .001 works out to be about 94-300 ft depending on the longitude.
positionShouldUpdate = (position) => {
const { currentPosition } = this.props
if (!currentPosition.coords) return true
Expand Down Expand Up @@ -137,6 +138,7 @@ class ResponsiveWebapp extends Component {
}
}

// Watch for position changing on mobile
if (isMobile()) {
navigator.geolocation.watchPosition(
// On success
Expand Down Expand Up @@ -214,7 +216,6 @@ class ResponsiveWebapp extends Component {
if (isMobile()) {
// Test location availability on load
getCurrentPosition(intl)
// Also, watch for changes in position on mobile
}
// Handle routing to a specific part of the app (e.g. stop viewer) on page
// load. (This happens prior to routing request in case special routerId is
Expand Down
2 changes: 0 additions & 2 deletions lib/components/viewers/nearby/nearby-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ function NearbyView({
</li>
))

console.log(nearbyItemList)

useEffect(() => {
if (!staleData) {
setLoading(false)
Expand Down

0 comments on commit 87e1ac8

Please sign in to comment.