Skip to content

Commit

Permalink
add comment per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Jan 14, 2025
1 parent b05d0a3 commit 5c9edef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion patientsearch/src/js/helpers/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 5c9edef

Please sign in to comment.