aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/instance/reserves/create
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/reserves/create')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx
index de2319636..ad0cca74a 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx
@@ -31,7 +31,7 @@ import { Input } from "../../../../components/form/Input.js";
import { InputCurrency } from "../../../../components/form/InputCurrency.js";
import { InputSelector } from "../../../../components/form/InputSelector.js";
import { ExchangeBackend, MerchantBackend } from "../../../../declaration.js";
-import { request } from "../../../../hooks/backend.js";
+// import { request } from "../../../../utils/request.js";
import {
PAYTO_WIRE_METHOD_LOOKUP,
URL_REGEX,
@@ -124,11 +124,10 @@ function ViewStep({
<AsyncButton
class="has-tooltip-left"
onClick={() => {
- return request<ExchangeBackend.WireResponse>(
- `${reserve.exchange_url}wire`,
- )
+ return fetch(`${reserve.exchange_url}wire`)
+ .then((r) => r.json())
.then((r) => {
- const wireMethods = r.data.accounts.map((a) => {
+ const wireMethods = r.data.accounts.map((a: any) => {
const match = PAYTO_WIRE_METHOD_LOOKUP.exec(a.payto_uri);
return (match && match[1]) || "";
});