Skip to content

Commit

Permalink
Fix user storage check
Browse files Browse the repository at this point in the history
  • Loading branch information
FdelMazo committed Mar 22, 2024
1 parent caad35a commit 243383b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({}));
}

Expand Down

0 comments on commit 243383b

Please sign in to comment.