From b8d03b6b2aef630c0fafd7f6ab0fe317abfe1d93 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Tue, 12 Oct 2021 15:18:29 -0300
Subject: added example of withdrawal use cases

---
 .../taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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

diff --git a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx
index d4daefc2e..35cea2b9f 100644
--- a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx
@@ -21,6 +21,8 @@ import { CreateManualWithdraw } from "./CreateManualWithdraw";
 import * as wxApi from '../wxApi'
 import { AcceptManualWithdrawalResult, AmountJson, Amounts } from "@gnu-taler/taler-util";
 import { ReserveCreated } from "./ReserveCreated.js";
+import { route } from 'preact-router';
+import { Pages } from "../NavigationBar.js";
 
 interface Props {
 
@@ -58,7 +60,9 @@ export function ManualWithdrawPage({ }: Props): VNode {
   }
 
   if (success) {
-    return <ReserveCreated reservePub={success.reservePub} paytos={success.exchangePaytoUris} onBack={() => {}}/>
+    return <ReserveCreated reservePub={success.reservePub} paytos={success.exchangePaytoUris} onBack={() => {
+      route(Pages.balance)
+    }}/>
   }
 
   return <CreateManualWithdraw
-- 
cgit v1.2.3

