mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-24 23:27:46 +00:00
username null check
This commit is contained in:
@@ -61,11 +61,11 @@ export function UsernameForm({
|
||||
setLoading(false);
|
||||
});
|
||||
|
||||
if (res?.redirect) {
|
||||
if (res && "redirect" in res && res.redirect) {
|
||||
return router.push(res.redirect);
|
||||
}
|
||||
|
||||
if (res?.error) {
|
||||
if (res && "error" in res && res.error) {
|
||||
setError(res.error);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user