From 29610d35598770e6bfcf7919fecdf1fd4e851be4 Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Sun, 23 May 2021 20:08:00 +0530 Subject: [PATCH] dont send name in putAttributes --- src/services/userService.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/services/userService.ts b/src/services/userService.ts index 4275417f5..52d2442e6 100644 --- a/src/services/userService.ts +++ b/src/services/userService.ts @@ -52,14 +52,10 @@ export const verifyOtt = (email: string, ott: string) => { return HTTPService.get(`${ENDPOINT}/users/credentials`, { email, ott }); }; -export const putAttributes = ( - token: string, - name: string, - keyAttributes: KeyAttributes -) => { +export const putAttributes = (token: string, keyAttributes: KeyAttributes) => { return HTTPService.put( `${ENDPOINT}/users/attributes`, - { name: name ? name : '', keyAttributes: keyAttributes }, + { keyAttributes: keyAttributes }, null, { 'X-Auth-Token': token,