fix:Mainpage fix
Fix naming of functions
This commit is contained in:
@@ -6,7 +6,7 @@ import './css/Mainpage.css';
|
|||||||
|
|
||||||
const Mainpage = () => {
|
const Mainpage = () => {
|
||||||
const [tasks, setTasks] = useState([]);
|
const [tasks, setTasks] = useState([]);
|
||||||
const [errorMessage, setErrorMessage] = useState(null);
|
const [error_message, setErrorMessage] = useState(null);
|
||||||
const [count, setCount] = useState(0);
|
const [count, setCount] = useState(0);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@@ -29,7 +29,7 @@ const Mainpage = () => {
|
|||||||
checkSession();
|
checkSession();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const isAuthenticated = !errorMessage;
|
const isAuthenticated = !error_message;
|
||||||
|
|
||||||
const formatDeadline = (deadline) => {
|
const formatDeadline = (deadline) => {
|
||||||
if (!deadline) return 'Отсутствует';
|
if (!deadline) return 'Отсутствует';
|
||||||
|
|||||||
Reference in New Issue
Block a user