FIX: Weird translation error. 🔥d

This commit is contained in:
Robin Ward 2015-07-31 18:48:58 -04:00
parent 4f60344a9f
commit 9629f63612

View File

@ -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();