feat(crabfit): Improve colormap display
All checks were successful
lint / check (push) Successful in 29s
build configuration / build_web02 (push) Successful in 55s
build configuration / build_storage01 (push) Successful in 1m0s
build configuration / build_compute01 (push) Successful in 1m2s
build configuration / build_vault01 (push) Successful in 1m9s
build configuration / build_web01 (push) Successful in 2m29s

This commit is contained in:
Tom Hubrecht 2024-02-08 16:48:30 +01:00
parent ce3681f1e4
commit c95908d0b3
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,15 @@
diff --git a/src/utils/calculateAvailability.ts b/src/utils/calculateAvailability.ts
index 67286f35..4a744672 100644
--- a/src/utils/calculateAvailability.ts
+++ b/src/utils/calculateAvailability.ts
@@ -23,8 +23,8 @@ interface AvailabilityInfo {
* group availability for each date passed in.
*/
export const calculateAvailability = (dates: string[], people: Person[]): AvailabilityInfo => {
- let min = 0
- let max = people.length
+ let min = people.length
+ let max = 0
const availabilities: Availability[] = dates.map(date => {
const names = people.flatMap(p => p.availability.some(d => d === date) ? [p.name] : [])

View file

@ -32,6 +32,7 @@ stdenv.mkDerivation (
./04-frontend_url.patch
./05-dgnum.patch
./06-download.patch
./07-colormap.patch
];
offlineCache = fetchYarnDeps {