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 #7332


From: gnunet
Subject: [taler-wallet-core] branch master updated: fix #7332
Date: Thu, 29 Sep 2022 15:05:26 +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 538f27e9d fix #7332
538f27e9d is described below

commit 538f27e9dd5f55004e1fd1849ec7939afbec5c88
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Sep 29 10:05:17 2022 -0300

    fix #7332
---
 .../src/components/BankDetailsByPaytoType.tsx                 | 11 ++++++-----
 packages/taler-wallet-webextension/src/wallet/Transaction.tsx |  6 ++++--
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git 
a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx 
b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx
index 06a91f039..3283723e4 100644
--- 
a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx
+++ 
b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx
@@ -45,6 +45,11 @@ export function BankDetailsByPaytoType({
 
   if (payto.isKnown && payto.targetType === "bitcoin") {
     const min = segwitMinAmount(amount.currency);
+    const addrs = payto.segwitAddrs.map(
+      (a) => `${a} ${Amounts.stringifyValue(min)}`,
+    );
+    addrs.unshift(`${payto.targetPath} ${Amounts.stringifyValue(amount)}`);
+    const copyContent = addrs.join("\n");
     return (
       <section
         style={{
@@ -85,11 +90,7 @@ export function BankDetailsByPaytoType({
             </td>
             <td></td>
             <td>
-              <CopyButton
-                getContent={() =>
-                  `${payto.targetPath} ${Amounts.stringifyValue(amount)} BTC`
-                }
-              />
+              <CopyButton getContent={() => copyContent} />
             </td>
           </tr>
         </table>
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx 
b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index 8e479f988..c95b79fbc 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -116,8 +116,10 @@ export function TransactionPage({ tid, goToWalletHistory 
}: Props): VNode {
       onDelete={() =>
         wxApi.deleteTransaction(tid).then(() => goToWalletHistory(currency))
       }
-      onRetry={() =>
-        wxApi.retryTransaction(tid).then(() => goToWalletHistory(currency))
+      onRetry={async () =>
+        await wxApi
+          .retryTransaction(tid)
+          .then(() => goToWalletHistory(currency))
       }
       onRefund={(id) => wxApi.applyRefundFromPurchaseId(id).then()}
       onBack={() => goToWalletHistory(currency)}

-- 
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]