diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1cd40bd..7ef5585 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,8 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: "12.x" - - run: npm ci + node-version: '14' - run: npm run build - name: Deploy uses: crazy-max/ghaction-github-pages@v1 @@ -23,4 +22,4 @@ jobs: target_branch: gh-pages build_dir: build env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/src/store/auth.js b/src/store/auth.js index ec4ec34..52c61a1 100644 --- a/src/store/auth.js +++ b/src/store/auth.js @@ -6,7 +6,7 @@ const API = process.env.REACT_APP_BASE_URL+"/api"; export const AuthProvider = ({ children }) => { const [token, setToken] = useState(localStorage.getItem("authToken")); const [user, setUser] = useState(""); - // const [isLoading, setIsLoading] = useState(true); + const [isLoading, setIsLoading] = useState(true); const storTokenInLocalStorage = (token) => { setToken(token);