From 1b15fa8ebc9843e7aea53f26e07c67da364f2390 Mon Sep 17 00:00:00 2001 From: Peter Velkov Date: Wed, 18 Aug 2021 12:19:16 +0300 Subject: [PATCH] Document why we pass the `currentDate` but we don't really use it --- src/pages/home/report/ReportActionItemDate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/home/report/ReportActionItemDate.js b/src/pages/home/report/ReportActionItemDate.js index 03434cb59468..8ee127a721fd 100644 --- a/src/pages/home/report/ReportActionItemDate.js +++ b/src/pages/home/report/ReportActionItemDate.js @@ -23,6 +23,9 @@ ReportActionItemDate.displayName = 'ReportActionItemDate'; export default compose( withLocalize, + + /** This component is hooked to the current date so that relative times can update when necessary + * e.g. past midnight */ withCurrentDate(), memo, )(ReportActionItemDate);