diff options
Diffstat (limited to 'public/javascripts/favorite.js')
-rw-r--r-- | public/javascripts/favorite.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/favorite.js b/public/javascripts/favorite.js index 9edc248..92c87f7 100644 --- a/public/javascripts/favorite.js +++ b/public/javascripts/favorite.js @@ -44,7 +44,7 @@ self.updateDom = function (isFavorite) { self.update = function (selectedUser) { const currentUser = self.get() - if (currentUser == null) { + if (currentUser == null || selectedUser == null) { self.updateDom(false) return } |