From a8155fc06e3289e1f61006bd78f8b8d7c733b50d Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 9 Oct 2022 08:46:17 -0700 Subject: [PATCH] Fix account loading error on try. --- packages/webapp/src/classes/app-i18n/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/src/classes/app-i18n/index.ts b/packages/webapp/src/classes/app-i18n/index.ts index 86a5f59e..e5347532 100644 --- a/packages/webapp/src/classes/app-i18n/index.ts +++ b/packages/webapp/src/classes/app-i18n/index.ts @@ -23,7 +23,7 @@ export default abstract class AppI18n { public static getUserLocale(): Locale { // @Todo Hack: Try page must not account info. Add this to avoid 403 errors. - const isTryPage = window.location.href.endsWith('/try'); + const isTryPage = window.location.pathname.endsWith('/try'); let result: Locale; if (!isTryPage) { const account = fetchAccount();