aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/favorite.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-01-30 19:20:46 +0100
committerNoah Loomans <noahloomans@gmail.com>2017-01-30 19:20:46 +0100
commitb3f132b09cbf25e43b77c16a9935830705cfaae9 (patch)
tree06f71c522b89c72acdc090964073f20a003b37b0 /public/javascripts/favorite.js
parent773584f251b753fb1172cf9b34aaa82ef809ea9d (diff)
Fix update url bug
Diffstat (limited to 'public/javascripts/favorite.js')
-rw-r--r--public/javascripts/favorite.js2
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
}