diff --git a/patientsearch/src/js/helpers/utility.js b/patientsearch/src/js/helpers/utility.js index 68311de7..c64206d9 100644 --- a/patientsearch/src/js/helpers/utility.js +++ b/patientsearch/src/js/helpers/utility.js @@ -468,7 +468,8 @@ export function isInPast(dateString) { const today = new Date(); const targetDate = new Date(dateString); if (!isValid(targetDate)) return false; - return targetDate < today; + const diff = (today - targetDate); // in miniseconds + return diff > (1000 * 60 * 5); // this will check if diff is 5 minutes or more } /*