Skip to content

Commit

Permalink
Update NearbyAmenitiesMap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
git990412 authored Mar 26, 2024
1 parent ad65434 commit 29533cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/hotel/NearbyAmenitiesMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function NearbyAmenitiesMap({hotel}) {
clearMarkers()
axios
.get(
`http://localhost:8080/api/v1/locations/${category}?latitude=${centerCoords.lat()}&longitude=${centerCoords.lng()}&distance=${distance}`
`${process.env.NEXT_PUBLIC_BASE_URL}/api/v1/locations/${category}?latitude=${centerCoords.lat()}&longitude=${centerCoords.lng()}&distance=${distance}`
)
.then((r) => {
let newData = r.data.map((v) => {
Expand Down Expand Up @@ -390,4 +390,4 @@ export default function NearbyAmenitiesMap({hotel}) {
</div>
</div>
)
}
}

0 comments on commit 29533cd

Please sign in to comment.