Only suggest up to 20 shifts

This commit is contained in:
ConfusedPolarBear 2022-07-17 01:05:40 -05:00
parent a9554e265f
commit c8b0d59508

View File

@ -105,6 +105,9 @@ function findExactMatches() {
shifts.push(shift); shifts.push(shift);
} }
// Only suggest up to 20 shifts
shifts = shifts.slice(0, 20);
txtSuggested.textContent = "Suggested shifts: "; txtSuggested.textContent = "Suggested shifts: ";
if (shifts.length === 0) { if (shifts.length === 0) {
txtSuggested.textContent += "none available"; txtSuggested.textContent += "none available";