Artificial intelligent assistant

Meteor.user().emails[0].address を取得できるも、Type Error が出てしまう Meteor accounts-password meteor add accounts-ui currentUser client 1 var address = Meteor.user().emails[0].address; 2 console.log(address); // for debug 3 if (address == 'a@b.com') { ... } 2 3 "Exception in template helper: TypeError: Cannot read property 'emails' of undefined" undefined null Exception



Meteor.publish
if (this.userId) {...} OK

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 1dbc0766e880a5f9b7c2767048e6613f