diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-21 11:20:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-21 11:20:43 -0300 |
commit | f7cabbf479c9703e4565ae610a68e652ba9e95b5 (patch) | |
tree | 63e6823a3e7cc4039b7d37a241cb2025c2a1f0a8 /packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx | |
parent | fac550d45494b8c00e833cdbfbc6e0714222cd4a (diff) | |
download | wallet-core-f7cabbf479c9703e4565ae610a68e652ba9e95b5.tar.xz |
fix: fixing navigation when trying to pay and there is no balance for that currency
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx b/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx index a8ef4549c..b968e8412 100644 --- a/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx @@ -31,7 +31,7 @@ interface Props { onBack: () => void; } -export function ExchangeAddPage({ onBack }: Props): VNode { +export function ExchangeAddPage({ currency, onBack }: Props): VNode { const [verifying, setVerifying] = useState< { url: string; config: TalerConfigResponse } | undefined >(undefined); @@ -47,6 +47,7 @@ export function ExchangeAddPage({ onBack }: Props): VNode { return ( <ExchangeSetUrlPage onCancel={onBack} + expectedCurrency={currency} onVerify={async (url) => { const found = knownExchanges.findIndex((e) => e.exchangeBaseUrl === url) !== -1; |