From 5de2b2ab626ae797ed0e027e984c9eccc448d81b Mon Sep 17 00:00:00 2001 From: John Jewell Date: Fri, 24 May 2024 10:25:04 -0400 Subject: [PATCH] Add important note in comment --- florist/app/jobs/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/florist/app/jobs/page.tsx b/florist/app/jobs/page.tsx index de2349ca..1a0a30b9 100644 --- a/florist/app/jobs/page.tsx +++ b/florist/app/jobs/page.tsx @@ -7,6 +7,7 @@ import { useGetJobsByJobStatus } from "./hooks"; import Image from "next/image"; import loading_gif from "../assets/img/loading.gif"; +// Must be in same order as array returned from useGetJobsByJobStatus export const validStatuses = { NOT_STARTED: "Not Started", IN_PROGRESS: "In Progress", @@ -37,6 +38,7 @@ interface StatusProp { } export function useGetJobsFromEachJobStatus() { + // Must be in the same order as the validStatuses object. const statusDataFetches = [ useGetJobsByJobStatus("NOT_STARTED"), useGetJobsByJobStatus("IN_PROGRESS"),