 
     switch event.type
       when 'achievement'
-        badge = div className: 'profile-extra-entries__icon',
-          el AchievementBadge,
-            modifiers: ['recent-activity']
-            achievement: event.achievement
-            userAchievement:
-              achieved_at: event.created_at
-              achievement_id: event.achievement.id
+        badge = el AchievementBadge,
+          modifiers: ['recent-activity']
+          achievement: event.achievement
+          userAchievement:
+            achieved_at: event.created_at
+            achievement_id: event.achievement.id
 
         mappings =
           user:

        # unkown event
        return

    # default, empty badge
    badge ?= div className: 'profile-extra-entries__icon'

    li
      className: 'profile-extra-entries__item'
      key: event.id
      div
        className: 'profile-extra-entries__detail'
        badge
        div
          className: 'profile-extra-entries__text'
          el StringWithComponent,


      when 'rank'
        badge = div
          className: "score-rank score-rank--#{event.scoreRank}"

        mappings =
          user: strong null, em null, link(event.user.url, event.user.username)
