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');