aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/favorite.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/favorite.js')
-rw-r--r--public/javascripts/favorite.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/javascripts/favorite.js b/public/javascripts/favorite.js
index 8f48dc5..9edc248 100644
--- a/public/javascripts/favorite.js
+++ b/public/javascripts/favorite.js
@@ -13,9 +13,10 @@ self.get = function () {
const localStorageUser = JSON.parse(window.localStorage.getItem('fav'))
if (localStorageUser == null) return
- const correctedUser = USERS.filter(user =>
- user.type === localStorageUser.type &&
- user.value === localStorageUser.value)[0]
+ const correctedUser = USERS.filter(function (user) {
+ return user.type === localStorageUser.type &&
+ user.value === localStorageUser.value
+ })[0]
return correctedUser
} catch (e) {
self.delete()