From 8b9c26aef009566e278116036791cf2e9a63fd51 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Tue, 5 Dec 2023 14:26:54 -0300 Subject: [PATCH] xlabs/portal-bridge-ui-issues#11 - replace templated string by concat --- apps/connect/src/main.tsx | 2 +- apps/connect/src/vite-env.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/connect/src/main.tsx b/apps/connect/src/main.tsx index 7c2ac12f2..e5bd61265 100644 --- a/apps/connect/src/main.tsx +++ b/apps/connect/src/main.tsx @@ -10,7 +10,7 @@ if (redirects) { const matcher = new RegExp(redirects.join("|")); const hash = window.location.hash; if (matcher.test(hash)) { - window.location.href = `${advancedToolsHref}${hash}`; + window.location.href = advancedToolsHref+hash; } } diff --git a/apps/connect/src/vite-env.d.ts b/apps/connect/src/vite-env.d.ts index b64f8fc39..1b7240cd9 100644 --- a/apps/connect/src/vite-env.d.ts +++ b/apps/connect/src/vite-env.d.ts @@ -11,6 +11,6 @@ type NavLink = { declare global { declare const wormholeConnectConfig: WormholeConnectConfig; declare const navBar: NavLink[]; - declare const redirects: string[] | undefined; + declare const redirects: string[]; declare const advancedToolsHref: string; }