From e90f0de75e57fcf91e56902510b430bab1a2182c Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Tue, 20 Sep 2016 09:47:14 -0400 Subject: [PATCH] CSS fix --- hourglass/client/profile/profile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 5c5c41e..70422ee 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -76,15 +76,15 @@ Template.profile.helpers({ return Session.get("user").name; }, motd() { // Returns the current user's description - if (Session.get("user").description !== "") return Session.get("user").description; + if (Session.get("user").description !== undefined) return Session.get("user").description; return "Say something about yourself!"; }, school() { // Returns the current user's school's name - if (Session.get("user").school !== "") return Session.get("user").school; + if (Session.get("user").school !== undefined) return Session.get("user").school; return "Click here to edit..."; }, grade() { // Returns the current user's grade - if (Session.get("user").grade !== "") return Session.get("user").grade + "th"; + if (Session.get("user").grade !== undefined) return Session.get("user").grade + "th"; return "Click here to edit..."; }, classes() { // Loads all of the possible classes ( Limit of twenty shown ) ( Sorts by class size )