Skip to content
Snippets Groups Projects
Commit 0a7aca81 authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Fix login button

parent 2345d4f7
No related branches found
No related tags found
1 merge request!72Fix login button
Pipeline #41294 failed
...@@ -76,7 +76,9 @@ const AdminLogin: React.FC = () => { ...@@ -76,7 +76,9 @@ const AdminLogin: React.FC = () => {
fullWidth fullWidth
variant="contained" variant="contained"
color="secondary" color="secondary"
disabled={!formik.isValid || !formik.touched.model?.email || !formik.touched.model?.email || loading} disabled={
!formik.isValid || formik.values.model?.email === '' || formik.values.model?.email === '' || loading
}
> >
Logga in Logga in
</Button> </Button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment