From 053dc3ae76eb02daf40a6bf0dc9f8bf9dff5eacd Mon Sep 17 00:00:00 2001 From: mnida <33556500+mnida@users.noreply.github.com> Date: Sun, 19 Nov 2023 11:57:07 -0500 Subject: [PATCH] Fix Delete Customer Bug (#773) --- frontend/src/api/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/api.ts b/frontend/src/api/api.ts index 2a1e110e9..e2c6aff37 100644 --- a/frontend/src/api/api.ts +++ b/frontend/src/api/api.ts @@ -151,7 +151,7 @@ export const Customer = { getCustomerTotals: (): Promise => requests.get("app/customers/totals/"), deleteCustomer: (customer_id: string): Promise => - requests.post(`app/${customer_id}/delete/`, {}), + requests.post(`app/customers/${customer_id}/delete/`, {}), updateCustomer: ( customer_id: string, default_currency_code: string,