From b650750bccf40dfb12d0fc455cbebd8fa1fd5277 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 17 Mar 2022 12:39:16 -0300
Subject: no more back button

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

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

diff --git a/packages/taler-wallet-webextension/src/walletEntryPoint.tsx b/packages/taler-wallet-webextension/src/walletEntryPoint.tsx
index 9f96a03e0..a346df2c8 100644
--- a/packages/taler-wallet-webextension/src/walletEntryPoint.tsx
+++ b/packages/taler-wallet-webextension/src/walletEntryPoint.tsx
@@ -186,6 +186,9 @@ function Application(): VNode {
                 <Route
                   path={Pages.balance_deposit}
                   component={DepositPage}
+                  onCancel={(currency: string) => {
+                    route(Pages.balance_history.replace(":currency", currency));
+                  }}
                   onSuccess={(currency: string) => {
                     route(Pages.balance_history.replace(":currency", currency));
                     setGlobalNotification(
-- 
cgit v1.2.3

