From caad35ac3b8da62e134a7368fe1ec03cf5e42d98 Mon Sep 17 00:00:00 2001 From: Federico del Mazo Date: Fri, 22 Mar 2024 18:58:17 -0300 Subject: [PATCH 1/2] Call `npm test` after repo checkout --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 446e5f2..2409333 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest name: Build & Deploy to Github Pages steps: + - id: node-to-gh + uses: fdelmazo/node-to-gh-action@v2 - name: Run tests run: npm test shell: bash - - id: node-to-gh - uses: fdelmazo/node-to-gh-action@v2 From 243383bf4f5e2058fdee6684b4552fecacb638c7 Mon Sep 17 00:00:00 2001 From: Federico del Mazo Date: Fri, 22 Mar 2024 18:58:44 -0300 Subject: [PATCH 2/2] Fix user storage check --- src/DataContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataContext.js b/src/DataContext.js index f1bcfb9..cf1c482 100644 --- a/src/DataContext.js +++ b/src/DataContext.js @@ -17,7 +17,7 @@ if (window.location.hash) { // Si el usuario tiene una sesión de cuando la aplicación tenía horarios estaticos // en vez de importados del SIU, le limpiamos la data const json = JSON.parse(window.localStorage.getItem("fiubaplan")); -if (json["cuatrimestre"]) { +if (json && json["cuatrimestre"]) { localStorage.setItem("fiubaplan", JSON.stringify({})); }