1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

sending user instead of { user } on patch

This commit is contained in:
Fedor Katurov 2020-08-26 13:17:46 +07:00
parent aa62dcfbcd
commit ed90c0c0c2

View file

@ -66,7 +66,7 @@ export const apiAuthGetUpdates = ({
export const apiUpdateUser = ({ access, user }): Promise<IResultWithStatus<{ user: IUser }>> =>
api
.patch(API.USER.ME, { user }, configWithToken(access))
.patch(API.USER.ME, user, configWithToken(access))
.then(resultMiddleware)
.catch(errorMiddleware);