/**
 * Dashboard
 */

Template.dashboard.helpers({
  firstName() {
    if (Meteor.userId()) {
      return Meteor.user().profile.name.split(' ')[0];
    }
    return '';
  },
  connected() {
    return Meteor.status().connected;
  },
});

Template.dashboard.events({
  'click .new-scheme'() {
    FlowRouter.go('insertScheme');
  },
});

Template.dashboard.onCreated(function created() {
  const self = this;
  self.autorun(() => {
    if (!Meteor.userId()) {
      FlowRouter.go('landing');
    }
  });
});

@@ -71,36 +71,59 @@
  if (Meteor.user
-Id
 ()
+ && Meteor.user().profile
 ) %7B%0A      return

Check user before checking for firstName.