mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
Update apps/login/ui/SessionItem.tsx
Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
@@ -29,12 +29,11 @@ export default function SessionItem({
|
||||
|
||||
const response = await res.json();
|
||||
|
||||
setLoading(false);
|
||||
if (!res.ok) {
|
||||
setLoading(false);
|
||||
// setError(response.details);
|
||||
return Promise.reject(response);
|
||||
} else {
|
||||
setLoading(false);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user