diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx index 35cea2b9f..dcc0002e6 100644 --- a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx @@ -38,7 +38,13 @@ export function ManualWithdrawPage({ }: Props): VNode { try { const r = await fetch(`${exchange}/keys`) const j = await r.json() - setCurrency(j.currency) + if (j.currency) { + await wxApi.addExchange({ + exchangeBaseUrl: `${exchange}/`, + forceUpdate: true + }) + setCurrency(j.currency) + } } catch (e) { setError('The exchange url seems invalid') setCurrency(undefined) |