diff --git a/src/App.vue b/src/App.vue
index 97fe6a2..e1bce68 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,4 +1,13 @@
diff --git a/src/main.ts b/src/main.ts
index 6226bc9..fd83f0d 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -2,9 +2,8 @@ import { IonicVue } from "@ionic/vue";
import { createPinia } from "pinia";
import { createApp } from "vue";
import App from "./App.vue";
-
import { i18n } from "./locales";
-import router from "./router";
+import { router } from "./router";
/* Core CSS required for Ionic components to work properly */
import "@ionic/vue/css/core.css";
@@ -42,8 +41,8 @@ const pinia = createPinia();
const app = createApp(App)
.use(IonicVue)
- .use(router)
.use(pinia)
+ .use(router)
.use(i18n);
router.isReady().then(() => {
diff --git a/src/router/guard.ts b/src/router/guard.ts
new file mode 100644
index 0000000..b0ec3f7
--- /dev/null
+++ b/src/router/guard.ts
@@ -0,0 +1,7 @@
+import type { Router } from "vue-router";
+
+export function createRouterGuard(router: Router) {
+ router.beforeEach(async (to, from, next) => {
+ next();
+ });
+}
diff --git a/src/router/index.ts b/src/router/index.ts
index fc71e80..4c5c612 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,5 +1,6 @@
import type { RouteRecordRaw } from "vue-router";
import { createRouter, createWebHistory } from "@ionic/vue-router";
+import { createRouterGuard } from "./guard";
const routes: Array = [
{
@@ -64,4 +65,6 @@ const router = createRouter({
routes,
});
-export default router;
+createRouterGuard(router);
+
+export { router };
diff --git a/src/views/user/components/wallet-card.vue b/src/views/user/components/wallet-card.vue
index e813960..9961344 100644
--- a/src/views/user/components/wallet-card.vue
+++ b/src/views/user/components/wallet-card.vue
@@ -1,6 +1,4 @@