From 97a9e92d8b104a94c376ae4fad8c5c811f5ef7e1 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Tue, 27 Jun 2023 08:20:49 -0300
Subject: set amount for manual withdraw when the qr does not have it

---
 packages/taler-wallet-webextension/src/wallet/Application.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

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

diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx
index 7d4dafb56..d8cb22bf0 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -400,6 +400,12 @@ export function Application(): VNode {
             }) => (
               <CallToActionTemplate title={i18n.str`Digital cash withdrawal`}>
                 <WithdrawPageFromParams
+                  onAmountChanged={async (e) => {
+                    const page = `${Pages.ctaWithdrawManual({
+                      amount,
+                    })}?talerUri=${encodeURIComponent(talerUri)}`;
+                    redirectTo(page);
+                  }}
                   talerExchangeWithdrawUri={talerUri}
                   amount={amount}
                   cancel={() => redirectTo(Pages.balance)}
-- 
cgit v1.2.3

