From 8e29f20bf3b82b68d3490f688d3b79b8d69e3c98 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Mon, 15 Feb 2021 16:33:22 +0200 Subject: [PATCH] fix: Edit Account. --- client/src/hooks/query/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/hooks/query/accounts.js b/client/src/hooks/query/accounts.js index afaa01b7c..d0b69e6c0 100644 --- a/client/src/hooks/query/accounts.js +++ b/client/src/hooks/query/accounts.js @@ -82,7 +82,7 @@ export function useEditAccount(props) { const query = useQueryClient(); return useMutation( - ([values, id]) => ApiService.post(`accounts/${id}`, values), + ([id,values]) => ApiService.post(`accounts/${id}`, values), { onSuccess: () => { query.invalidateQueries('ACCOUNTS');