ui: fix signup flow
This commit is contained in:
parent
c137ddb10d
commit
dcbc437c7b
2 changed files with 3 additions and 3 deletions
|
|
@ -211,14 +211,14 @@ const SignupForm = () => {
|
|||
type="error"
|
||||
/>
|
||||
)}
|
||||
{errors && errors.length && (
|
||||
{errors && errors.length > 0 ? (
|
||||
<Alert
|
||||
className="my-3 rounded-lg"
|
||||
// message="Error Text"
|
||||
description={errors[0]}
|
||||
type="error"
|
||||
/>
|
||||
)}
|
||||
) : null}
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ export default class UserService {
|
|||
return this.client
|
||||
.post('/signup', data)
|
||||
.then((response: { json: () => any }) => response.json())
|
||||
.then((response: { data: any }) => response.data || {});
|
||||
.then((response: { data: any }) => response as Record<string, any> || {});
|
||||
}
|
||||
|
||||
resetPassword(data: any) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue