diff --git a/src/components/toasts/SessionToast.vue b/src/components/toasts/SessionToast.vue index 0fc6f13e07aa54caeb0e45b9dc8946dc3a96e9f7..752b3c1b7fe95b57d5a7d7466c449477bae3a3c9 100644 --- a/src/components/toasts/SessionToast.vue +++ b/src/components/toasts/SessionToast.vue @@ -149,7 +149,6 @@ export default defineComponent({ this.timeToExpiry = remainingTime; if (remainingTime !== null && remainingTime > 0) { - // Calculate the time until the warning threshold is reached and show the warning toast const timeUntilWarning = remainingTime - this.warningThreshold; diff --git a/src/router/index.ts b/src/router/index.ts index 94fcd13d66bbea17eb68017687adfc79e03fa99c..5943f58e69e3f7c7dc10e21e1449b1c947d07cf4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -45,9 +45,9 @@ router.beforeEach(async (to, _, next) => { const localeMessages: | LocaleMessages<DefaultLocaleMessageSchema, "en" | "de"> | undefined = to.matched - .map((e) => e.meta.i18n) - .filter((i) => i) - .pop(); + .map((e) => e.meta.i18n) + .filter((i) => i) + .pop(); if (localeMessages) { i18n.global.availableLocales.forEach((locale) => { i18n.global.setLocaleMessage(locale, def[locale]); // default locale messages