gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: fix: prevent undefined in URL


From: gnunet
Subject: [taler-wallet-core] branch master updated: fix: prevent undefined in URL
Date: Thu, 09 Jun 2022 15:04:40 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new eb8bcc95 fix: prevent undefined in URL
eb8bcc95 is described below

commit eb8bcc95324f3282003b4870d890d0b9f570ee46
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Jun 9 10:04:30 2022 -0300

    fix: prevent undefined in URL
---
 packages/taler-wallet-webextension/src/NavigationBar.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/taler-wallet-webextension/src/NavigationBar.tsx 
b/packages/taler-wallet-webextension/src/NavigationBar.tsx
index 085ac79a..f782575d 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;
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]