mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 11:12:00 +08:00
fix: error is now handled in the login screen (#1120)
This commit is contained in:
parent
53528f1045
commit
1926998e3c
@ -20,7 +20,10 @@ function Login(): JSX.Element {
|
||||
enabled: !isLoggedIn,
|
||||
});
|
||||
|
||||
if (versionResult.status === 'error') {
|
||||
if (
|
||||
versionResult.status === 'error' ||
|
||||
(versionResult.status === 'success' && versionResult?.data.statusCode !== 200)
|
||||
) {
|
||||
return (
|
||||
<Typography>
|
||||
{versionResult.data?.error || t('something_went_wrong')}
|
||||
|
Loading…
x
Reference in New Issue
Block a user