diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx b/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx index d8a7c6090..9be12fb28 100644 --- a/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ExchangeAddPage.tsx @@ -59,14 +59,29 @@ export function ExchangeAddPage({ currency, onBack }: Props): VNode { if (found) { throw Error("This exchange is already known"); } - return queryToSlashKeys(url); + return { + name: "1", + version: "15:0:0", + currency: "ARS", + }; }} - onConfirm={(url) => - queryToSlashKeys<TalerConfigResponse>(url) - .then((config) => { - setVerifying({ url, config }); - }) - .catch((e) => e.message) + onConfirm={ + async (url) => { + setVerifying({ + url, + config: { + name: "1", + version: "15:0:0", + currency: "ARS", + }, + }); + return undefined; + } + // queryToSlashKeys<TalerConfigResponse>(url) + // .then((config) => { + // setVerifying({ url, config }); + // }) + // .catch((e) => e.message) } /> ); |