diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-09 10:04:30 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-09 10:04:30 -0300 |
commit | eb8bcc95324f3282003b4870d890d0b9f570ee46 (patch) | |
tree | d5656f366d03542935fc4c2403e35a85c30473f6 | |
parent | b419db505b8cd5e7aa92043696f42a0d710d9226 (diff) | |
download | wallet-core-eb8bcc95324f3282003b4870d890d0b9f570ee46.tar.xz |
fix: prevent undefined in URL
-rw-r--r-- | packages/taler-wallet-webextension/src/NavigationBar.tsx | 2 |
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; } |