diff --git a/backend/templates/base.html b/backend/templates/base.html
index afd2047..58c2bda 100644
--- a/backend/templates/base.html
+++ b/backend/templates/base.html
@@ -169,7 +169,11 @@
}
function getOwnedEntries() {
- return JSON.parse(localStorage.getItem("ownedEntries"))
+ var entries = JSON.parse(localStorage.getItem("ownedEntries"))
+ if (entries == null) {
+ entries = []
+ }
+ return entries;
}