From 9ca1864b79ede841e71836132effc2e260b4e758 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 11 Nov 2022 23:28:13 +0530 Subject: added very basic functionality to generate and list invoices --- src/classes/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/classes/client.js') diff --git a/src/classes/client.js b/src/classes/client.js index d05655d..baa2ed7 100644 --- a/src/classes/client.js +++ b/src/classes/client.js @@ -54,8 +54,8 @@ export class InvoiceClient extends Client { } } -export const saveClient = (item, ok, fail) => { - axios.post("/client/new", item) +export const saveClient = (client, ok, fail) => { + axios.post("/client/new", client) .then(res => ok(res)) .catch(err => fail(err)) } -- cgit v1.2.3