aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw/state.ts')
-rw-r--r--packages/taler-wallet-webextension/src/cta/Withdraw/state.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts b/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts
index a3855c2f4..46d221766 100644
--- a/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts
+++ b/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts
@@ -324,10 +324,11 @@ function exchangeSelectionState(
raw: Amounts.parseOrThrow(info.amountRaw),
effective: Amounts.parseOrThrow(info.amountEffective),
};
-
+
return {
amount: withdrawAmount,
ageRestrictionOptions: info.ageRestrictionOptions,
+ accounts: info.withdrawalAccountList
};
}, []);
@@ -335,7 +336,7 @@ function exchangeSelectionState(
undefined,
);
const [doingWithdraw, setDoingWithdraw] = useState<boolean>(false);
-
+
async function doWithdrawAndCheckError(): Promise<void> {
try {
setDoingWithdraw(true);
@@ -406,6 +407,7 @@ function exchangeSelectionState(
doSelectExchange: selectedExchange.doSelect,
currentExchange,
toBeReceived,
+ accounts: amountHook.response.accounts,
withdrawalFee,
chosenAmount,
talerWithdrawUri,