aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-06-09 10:04:30 -0300
committerSebastian <sebasjm@gmail.com>2022-06-09 10:04:30 -0300
commiteb8bcc95324f3282003b4870d890d0b9f570ee46 (patch)
treed5656f366d03542935fc4c2403e35a85c30473f6
parentb419db505b8cd5e7aa92043696f42a0d710d9226 (diff)
fix: prevent undefined in URL
-rw-r--r--packages/taler-wallet-webextension/src/NavigationBar.tsx2
1 files changed, 1 insertions, 1 deletions
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;
}