Skip to content
Snippets Groups Projects
Commit 301732c7 authored by Martin Korec's avatar Martin Korec
Browse files

fix: changed init of useStates

parent 3b466d3a
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ import axiosConfig from '../axios-config'; ...@@ -7,8 +7,8 @@ import axiosConfig from '../axios-config';
export const MoviePage = () => { export const MoviePage = () => {
const { id, name } = useParams(); const { id, name } = useParams();
const [movie, setMovie] = useState<MovieIO>(Object); const [movie, setMovie] = useState<MovieIO>({} as MovieIO);
const [director, setDirector] = useState<DirectorIO>(Object); const [director, setDirector] = useState<DirectorIO>({} as DirectorIO);
const [isError, setIsError] = useState<boolean>(false); const [isError, setIsError] = useState<boolean>(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment