Fixed registration page

This commit is contained in:
Keannu Christian Bernasol 2023-07-04 14:34:31 +08:00
parent fb7b77efb7
commit 4a00dd1817
2 changed files with 11 additions and 8 deletions

View file

@ -48,10 +48,10 @@ export function UserRegister(register: RegistrationParams) {
return instance
.post("/api/v1/accounts/users/", register)
.then(async (response) => {
return [response.status];
return [true, response.status];
})
.catch((error) => {
return [error.response.status, error.response.data];
return [false, error.response.status, error.response.data];
});
}