aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/app.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-10 10:39:38 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-10 19:27:51 +0100
commit6bac18e8118582ca0c67ad2915b0a1ce68818e35 (patch)
tree380645bbc94010729a26321d4e3672529a382a01 /www/js/app.js
parent6d220eb42935e6925a875b244dc9940805e781fd (diff)
explicitely check if current user is null as that seems more robust
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 96733bd..42916b1 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -86,7 +86,7 @@ var tpl = {
if ( FMS.users.length > 0 ) {
FMS.currentUser = FMS.users.get(1);
}
- if ( !FMS.currentUser ) {
+ if ( FMS.currentUser === null ) {
FMS.currentUser = new FMS.User({id: 1});
}