fix: error is now handled in the login screen (#1120)

This commit is contained in:
palash-signoz 2022-05-12 13:43:20 +05:30 committed by GitHub
parent 53528f1045
commit 1926998e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')}