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 b0779a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/my-account/my-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ class MyAccount {
this.routes.splice(i, 1);
this.__updateAccountRoutesContainerDOMElement(this.routes);
this.#updateSources();
localStorage.setItem("savedRoutes", JSON.stringify(this.routes));
break;
}
}
Expand All @@ -583,6 +584,7 @@ class MyAccount {
this.landmarks.splice(i, 1);
this.__updateAccountLandmarksContainerDOMElement(this.landmarks);
this.#updateSources();
localStorage.setItem("savedLandmarks", JSON.stringify(this.landmarks));
break;
}
}
Expand Down

0 comments on commit b0779a0

Please sign in to comment.