ui: fix signup flow

This commit is contained in:
nick-delirium 2024-11-18 11:42:27 +01:00
parent c137ddb10d
commit dcbc437c7b
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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) {