From 88e90f4f33dee84ec4250c5f580de6f55f9f376a Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sat, 24 Sep 2016 19:10:49 -0400 Subject: [PATCH] Fixed new profile not loading new values --- 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 ba990ad..b9bd82e 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 )