summaryrefslogtreecommitdiff
path: root/src/lib/auth
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/auth')
-rw-r--r--src/lib/auth/api/registerApi.js2
-rw-r--r--src/lib/auth/components/PersonalProfile.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/auth/api/registerApi.js b/src/lib/auth/api/registerApi.js
index f3d75ce8..f9413f8c 100644
--- a/src/lib/auth/api/registerApi.js
+++ b/src/lib/auth/api/registerApi.js
@@ -1,6 +1,6 @@
import odooApi from '@/core/api/odooApi'
-const registerApi = async ({ data }) => {
+const registerApi = async ({ ...data }) => {
const dataRegister = await odooApi('POST', '/api/v1/user/register', data)
return dataRegister
}
diff --git a/src/lib/auth/components/PersonalProfile.jsx b/src/lib/auth/components/PersonalProfile.jsx
index 0b387f2e..4f606ed4 100644
--- a/src/lib/auth/components/PersonalProfile.jsx
+++ b/src/lib/auth/components/PersonalProfile.jsx
@@ -34,7 +34,7 @@ const PersonalProfile = () => {
let data = values
if (!values.password) delete data.password
const isUpdated = await editPersonalProfileApi({ data })
- console.log(isUpdated)
+
if (isUpdated?.user) {
setAuth(isUpdated.user)
setValue('password', '')