Compare commits

...

1 Commits

Author SHA1 Message Date
victorAnumudu 91bb18e4c9 endpoint bug fixed 2026-04-30 17:29:03 +01:00
2 changed files with 2 additions and 1 deletions
@@ -44,6 +44,7 @@ export default function UpdateProfile({accountInfo}) {
console.log(error) console.log(error)
}, },
onSuccess: (res) => { onSuccess: (res) => {
console.log('res', res)
// if(res?.data?.resultCode != '0') { // if(res?.data?.resultCode != '0') {
// throw new Error(res?.data?.message || res?.data?.resultDescription || 'An error occurred while updating profile') // throw new Error(res?.data?.message || res?.data?.resultDescription || 'An error occurred while updating profile')
// } // }
+1 -1
View File
@@ -129,7 +129,7 @@ export const updateUserProfile = (reqData) => {
let postData = { let postData = {
...reqData ...reqData
} }
return postAuxEnd('/office/update-profile', postData, false) return postAuxEnd('/update-profile', postData, false)
} }
// FUNCTION TO GET PRODUCTS TEMPLATE DATA // FUNCTION TO GET PRODUCTS TEMPLATE DATA