Fix login bug with empty username

This commit is contained in:
Tanner Collin 2020-02-02 05:30:15 +00:00
parent 0326950c54
commit efcc4b847d

View File

@ -5,7 +5,7 @@ import { Container, Divider, Dropdown, Form, Grid, Header, Icon, Image, Menu, Me
import { requester } from './utils.js';
export function LoginForm(props) {
const [input, setInput] = useState({});
const [input, setInput] = useState({ username: '' });
const [error, setError] = useState({});
const [loading, setLoading] = useState(false);