Skip to content

Commit

Permalink
fix: prevent marking adventure as visited if the place is already vis…
Browse files Browse the repository at this point in the history
…ited
  • Loading branch information
seanmorley15 committed Jan 3, 2025
1 parent 50e0d4a commit 82a1134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/AdventureModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
addToast('error', $t('adventures.adventure_update_error'));
}
}
if (adventure.is_visited) {
if (adventure.is_visited && !reverseGeocodePlace?.is_visited) {
markVisited();
}
}
Expand Down

0 comments on commit 82a1134

Please sign in to comment.