From 0576fc4187fba948714c964ea9881039a0de481e Mon Sep 17 00:00:00 2001
From: Trent Larson
Date: Tue, 21 Jan 2025 19:51:58 -0700
Subject: [PATCH] fix a jump on user profile map move & recenter
---
src/router/index.ts | 4 +---
src/views/AccountViewView.vue | 11 ++++++++---
src/views/DiscoverView.vue | 2 +-
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/router/index.ts b/src/router/index.ts
index 3f9a3ff..b8b1be7 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -279,9 +279,7 @@ const errorHandler = (
) => {
// Handle the error here
console.error("Caught in top level error handler:", error, to, from);
- alert(
- "Something is very wrong. We'd love if you contacted us and let us know how you got here. Thank you!",
- );
+ alert("Something is very wrong. Try reloading or restarting the app.");
// You can also perform additional actions, such as displaying an error message or redirecting the user to a specific page
};
diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue
index e5864e6..5145870 100644
--- a/src/views/AccountViewView.vue
+++ b/src/views/AccountViewView.vue
@@ -302,9 +302,7 @@
{
@@ -312,6 +310,7 @@
userProfileLongitude = event.latlng.lng;
}
"
+ @ready="onMapReady"
>