Fix translations

This commit is contained in:
2024-07-25 01:18:38 +02:00
parent 95555a30a5
commit 7e30d515b6
7 changed files with 16 additions and 22 deletions
@@ -58,7 +58,7 @@ const Login: FC = () => {
onBlur={field.handleBlur}
onChange={(e) => field.handleChange(e.target.value)}
size="small"
label={t('E-Mail')}
label={t('EMail')}
required
error={field.state.meta.isTouched && field.state.meta.errors.length > 0}
helperText={field.state.meta.isTouched ? field.state.meta.errors.join(',') : ''}
@@ -106,7 +106,7 @@ const Login: FC = () => {
</>
)}
/>
<Typography color="error.main">{t(...handleError(error, 'login'))}</Typography>
{error && <Typography color="error.main">{t(...handleError(error, 'login'))}</Typography>}
</Box>
</form>
);