From 9629f636123c2c5f9d353948ddf550d9f1d39bfc Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 31 Jul 2015 18:48:58 -0400 Subject: [PATCH] FIX: Weird translation error. :fire:d --- app/assets/javascripts/discourse/components/small-action.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/small-action.js.es6 b/app/assets/javascripts/discourse/components/small-action.js.es6 index 4ffa7ac63f2..4457c6fb498 100644 --- a/app/assets/javascripts/discourse/components/small-action.js.es6 +++ b/app/assets/javascripts/discourse/components/small-action.js.es6 @@ -17,7 +17,7 @@ const icons = { export function actionDescription(actionCode, createdAt) { return function() { const ac = this.get(actionCode); - if (actionCode) { + if (ac) { const dt = new Date(this.get(createdAt)); const when = Discourse.Formatter.relativeAge(dt, {format: 'medium-with-ago'}); return I18n.t(`action_codes.${ac}`, {when}).htmlSafe();