Skip to content

Commit

Permalink
fix(saved): deleting routes and landmarks not working when restart app
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Dec 30, 2024
1 parent e0bb500 commit ec7b334
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/my-account/my-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ class MyAccount {
}
this.routes.splice(i, 1);
this.__updateAccountRoutesContainerDOMElement(this.routes);
localStorage.setItem("savedRoutes", JSON.stringify(this.routes));
this.#updateSources();
break;
}
Expand All @@ -582,6 +583,7 @@ class MyAccount {
}
this.landmarks.splice(i, 1);
this.__updateAccountLandmarksContainerDOMElement(this.landmarks);
localStorage.setItem("savedLandmarks", JSON.stringify(this.landmarks));
this.#updateSources();
break;
}
Expand All @@ -598,6 +600,7 @@ class MyAccount {
}
this.compareLandmarks.splice(i, 1);
this.__updateAccountCompareLandmarksContainerDOMElement(this.compareLandmarks);
localStorage.setItem("savedCompareLandmarks", JSON.stringify(this.compareLandmarks));
this.#updateSources();
break;
}
Expand Down

0 comments on commit ec7b334

Please sign in to comment.