From eb8bcc95324f3282003b4870d890d0b9f570ee46 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 9 Jun 2022 10:04:30 -0300
Subject: fix: prevent undefined in URL

---
 packages/taler-wallet-webextension/src/NavigationBar.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/taler-wallet-webextension/src/NavigationBar.tsx')

diff --git a/packages/taler-wallet-webextension/src/NavigationBar.tsx b/packages/taler-wallet-webextension/src/NavigationBar.tsx
index 085ac79a5..f782575de 100644
--- a/packages/taler-wallet-webextension/src/NavigationBar.tsx
+++ b/packages/taler-wallet-webextension/src/NavigationBar.tsx
@@ -52,7 +52,7 @@ function replaceAll(
 ): string {
   let result = pattern;
   for (const v in vars) {
-    result = result.replace(vars[v], values[v]);
+    result = result.replace(vars[v], !values[v] ? "" : values[v]);
   }
   return result;
 }
-- 
cgit v1.2.3

