1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-20 13:29:37 +02:00

feat: Add country name to region page

This commit is contained in:
Sean Morley 2024-07-10 17:27:43 -04:00
parent 597e56ea62
commit bb1f2d92cf
8 changed files with 76 additions and 13 deletions

View file

@ -10,8 +10,6 @@
export let visit_id: number | undefined | null;
console.log(visit_id);
async function markVisited() {
let res = await fetch(`/worldtravel?/markVisited`, {
method: 'POST',
@ -47,6 +45,7 @@
if (res.ok) {
visited = false;
addToast('info', `Visit to ${region.name} removed`);
dispatch('remove', null);
} else {
console.error('Failed to remove visit');
}