aboutsummaryrefslogtreecommitdiff
path: root/src/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/client.js b/src/classes/client.js
index 6785c90..842c5e5 100644
--- a/src/classes/client.js
+++ b/src/classes/client.js
@@ -67,6 +67,6 @@ export const getAllClients = (ok, fail) => {
export const editClient = (client, ok, fail) => {
axios.put(`/client/${client.Id}`, client)
- .then(res => ok())
- .catch(err => fail())
+ .then(res => ok(res))
+ .catch(err => fail(err))
}