From ed90c0c0c2c547455df5482f684475ecc0ba5dc6 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Wed, 26 Aug 2020 13:17:46 +0700 Subject: [PATCH] sending user instead of { user } on patch --- src/redux/auth/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redux/auth/api.ts b/src/redux/auth/api.ts index f56ba229..54a78223 100644 --- a/src/redux/auth/api.ts +++ b/src/redux/auth/api.ts @@ -66,7 +66,7 @@ export const apiAuthGetUpdates = ({ export const apiUpdateUser = ({ access, user }): Promise> => api - .patch(API.USER.ME, { user }, configWithToken(access)) + .patch(API.USER.ME, user, configWithToken(access)) .then(resultMiddleware) .catch(errorMiddleware);