From 5c9edeffb55dbb45a100709671e5c490633c540a Mon Sep 17 00:00:00 2001 From: Amy Chen Date: Tue, 14 Jan 2025 14:36:17 -0800 Subject: [PATCH] add comment per feedback --- patientsearch/src/js/helpers/utility.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patientsearch/src/js/helpers/utility.js b/patientsearch/src/js/helpers/utility.js index c64206d9..ed56c60b 100644 --- a/patientsearch/src/js/helpers/utility.js +++ b/patientsearch/src/js/helpers/utility.js @@ -469,7 +469,9 @@ export function isInPast(dateString) { const targetDate = new Date(dateString); if (!isValid(targetDate)) return false; const diff = (today - targetDate); // in miniseconds - return diff > (1000 * 60 * 5); // this will check if diff is 5 minutes or more + // this will check if diff is 5 minutes or more + // e.g. pad by 5 mins to give system time to transmit message, rather than indicate no next message time during processing + return diff > (1000 * 60 * 5); } /*