updated restriction to disallow partial reps and appeals from being submitted when not docapi

This commit is contained in:
2026-01-15 13:20:07 +00:00
parent 94861846aa
commit 9241fe0b84
17 changed files with 956 additions and 743 deletions
+27
View File
@@ -797,3 +797,30 @@ export const whichRepType = (props) => {
return repType;
};
export const getDocLink = (docsOffline) => {
var startTime = docsOffline.split(",")[0];
var endTime = docsOffline.split(",")[1];
// console.log(startTime);
// console.log(endTime);
var currentDate = new Date();
var startDate = new Date(currentDate.getTime());
startDate.setHours(startTime.split(":")[0]);
startDate.setMinutes(startTime.split(":")[1]);
startDate.setSeconds(startTime.split(":")[2]);
var endDate = new Date(currentDate.getTime());
endDate.setHours(endTime.split(":")[0]);
endDate.setMinutes(endTime.split(":")[1]);
endDate.setSeconds(endTime.split(":")[2]);
// console.log(startDate);
// console.log(endDate);
// console.log(currentDate);
var valid = startDate < currentDate && endDate > currentDate;
return valid;
};