Skip to content
Snippets Groups Projects
Commit 18cc576b authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fixes moment().format error on userInfo

parent 34f8a710
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,8 @@ Template.userInfo.helpers
return Session.get('selfVideoUrl')
userTime: ->
return Template.instance().now?.get().utcOffset(@utcOffset).format('HH:mm')
if @utcOffset?
return Template.instance().now.get().utcOffset(@utcOffset).format('HH:mm')
Template.userInfo.onCreated ->
@now = new ReactiveVar moment()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment