Skip to content

Commit

Permalink
removed quotes around campground in script
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh025 authored Nov 10, 2024
1 parent 3651bda commit ccc4c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/campgrounds/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

<script>
const mapToken = '<%- process.env.MAPBOX_TOKEN %>';
const campgrounds = '<%- JSON.stringify(campgrounds) %>';
const campgrounds = <%- JSON.stringify(campgrounds) %>;
// Nearest button functionality
document.getElementById('show-nearest-btn').addEventListener('click', () => {
if (navigator.geolocation) {
Expand Down

0 comments on commit ccc4c05

Please sign in to comment.