From 1bba1f0fa61034804e7a6052c0c383c5c87fdb28 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 18 Aug 2017 12:04:34 +0100 Subject: [PATCH] Add comment --- src/TextForEvent.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index d75ef34c1c..f99cf7bde5 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -257,6 +257,8 @@ function textForWidgetEvent(event) { // Apply sentence case widgetName = widgetName ? widgetName[0].toUpperCase() + widgetName.slice(1).toLowerCase() + ' ' : ''; + // If the widget was removed, its content should be {}, but this is sufficiently + // equivalent to that condition. if (url) { return _t('%(senderName)s added a %(widgetName)swidget', { senderName, widgetName,