         </>
       }
     </h1>
-    <div className="userStats #{unless username then 'hidden' else ''}">
-      <h2>
-        <UserLink group={group} username={username}/>
-        &rsquo;s Statistics: {stats[0].msgCount} posts
-      </h2>
-      <canvas className="userStats" width="800" height="400" ref={canvasRefs[0]}/>
-    </div>
+    {if username?
+      <>
+        <h2>
+          <UserLink group={group} username={username}/>
+          &rsquo;s Statistics: {stats[0].msgCount} posts
+        </h2>
+        <canvas className="userStats" width="800" height="400" ref={canvasRefs[0]}/>
+      </>
+    }
     <h2>
       Global Statistics: {stats[1].msgCount} posts
     </h2>

  useEffect ->
    return unless updated?
    for stat, i in stats
      if stat.chart?
        stat.chart.update 1000
      else


export Stats = React.memo ({group, username, unit}) ->
  unit ?= defaultUnit
  username = Meteor.user()?.username if username == 'me'
  useEffect ->
    title = "Statistics"
    title += " for #{username}" if username
