From 3e8562456d6280184f4faf3c12c03c65f8a0a476 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 26 Feb 2023 14:57:56 +0100 Subject: [PATCH] demobank-ui: fix request URIs --- packages/demobank-ui/src/hooks/access.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/demobank-ui/src/hooks/access.ts b/packages/demobank-ui/src/hooks/access.ts index 6046146ba..8282210d4 100644 --- a/packages/demobank-ui/src/hooks/access.ts +++ b/packages/demobank-ui/src/hooks/access.ts @@ -60,7 +60,7 @@ export function useAccessAPI(): AccessAPI { }; const abortWithdrawal = async (id: string): Promise> => { const res = await request( - `access-api/accounts/${account}/withdrawals/${id}`, + `access-api/accounts/${account}/withdrawals/${id}/abort`, { method: "POST", contentType: "json", @@ -73,7 +73,7 @@ export function useAccessAPI(): AccessAPI { id: string, ): Promise> => { const res = await request( - `access-api/accounts/${account}/withdrawals/${id}`, + `access-api/accounts/${account}/withdrawals/${id}/confirm`, { method: "POST", contentType: "json",