diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-09 19:59:08 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-09 19:59:08 +0100 |
commit | 6415564b9259a4a6a2f6ec9cb934eab3d56a1677 (patch) | |
tree | 577372a635b5503c1ad81b2af8523a839e790bb7 /src/webex/pages/withdraw.tsx | |
parent | 99bccae9fe1588f711e7606dc3c6d7dd4a25675a (diff) | |
download | wallet-core-6415564b9259a4a6a2f6ec9cb934eab3d56a1677.tar.xz |
tos
Diffstat (limited to 'src/webex/pages/withdraw.tsx')
-rw-r--r-- | src/webex/pages/withdraw.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webex/pages/withdraw.tsx b/src/webex/pages/withdraw.tsx index 6b7152dc2..3ee0f768a 100644 --- a/src/webex/pages/withdraw.tsx +++ b/src/webex/pages/withdraw.tsx @@ -57,9 +57,9 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) { return; } console.log("got withdrawDetails", d); - if (!selectedExchange && d.withdrawInfo.suggestedExchange) { + if (!selectedExchange && d.bankWithdrawDetails.suggestedExchange) { console.log("setting selected exchange"); - setSelectedExchange(d.withdrawInfo.suggestedExchange); + setSelectedExchange(d.bankWithdrawDetails.suggestedExchange); } setDetails(d); }; @@ -101,7 +101,7 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) { } if (selecting) { - const bankSuggestion = details && details.withdrawInfo.suggestedExchange; + const bankSuggestion = details && details.bankWithdrawDetails.suggestedExchange; return ( <div> {i18n.str`Please select an exchange. You can review the details before after your selection.`} @@ -157,7 +157,7 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) { <div> <i18n.Translate wrap="p"> You are about to withdraw{" "} - <strong>{renderAmount(details.withdrawInfo.amount)}</strong> from your + <strong>{renderAmount(details.bankWithdrawDetails.amount)}</strong> from your bank account into your wallet. </i18n.Translate> <div> @@ -188,8 +188,8 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) { </span> </p> - {details.reserveCreationInfo ? ( - <WithdrawDetailView rci={details.reserveCreationInfo} /> + {details.exchangeWithdrawDetails ? ( + <WithdrawDetailView rci={details.exchangeWithdrawDetails} /> ) : null} </div> </div> |