Skip to content

Commit

Permalink
[#86] fix: fix GET error
Browse files Browse the repository at this point in the history
  • Loading branch information
suzinxix committed Mar 15, 2023
1 parent af78d8e commit ce377c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bowwowcare/src/views/HomePage/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useNavigate } from "react-router-dom";
import axios from "axios";
import { API_URL } from "../../Config";
import authHeader from "../../services/auth-header";
import { isLogin } from "../../utils/isLogin";

import Header from "../../components/Header";
import PetList from "./PetList/PetList";
Expand Down Expand Up @@ -39,7 +40,7 @@ function HomePage() {
};

useEffect(() => {
getPetList();
isLogin() && getPetList();
}, []);

return (
Expand Down

0 comments on commit ce377c8

Please sign in to comment.