diff --git a/client/src/components/Error.tsx b/client/src/components/Error.tsx index bb50ef9..558bb2b 100644 --- a/client/src/components/Error.tsx +++ b/client/src/components/Error.tsx @@ -1,29 +1,39 @@ import { useDispatch } from "react-redux"; -import { cleanError } from "../store/reducers/errorReducer" -const Error = ({ errorMessage }: { errorMessage: [] }) => { - const dispatch = useDispatch(); - console.log(errorMessage) - return ( -
{err}
) - } +import { cleanError, ErrorStateAlert } from "../store/reducers/errorReducer"; -+ {err.message} +
+ ))} +