From 18208a95b79b9da276be569f4c42b9b8ac5d1037 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 30 Dec 2022 05:48:17 -0800 Subject: [PATCH] Fix empty state for Job dropdown --- components/JobDropdown/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/JobDropdown/index.tsx b/components/JobDropdown/index.tsx index bc863821..30a76750 100644 --- a/components/JobDropdown/index.tsx +++ b/components/JobDropdown/index.tsx @@ -41,7 +41,9 @@ const JobDropdown = React.forwardRef( // Set current job from state on mount useEffect(() => { - setCurrentJob(party.job) + if (party.job.id !== '-1') { + setCurrentJob(party.job) + } }, []) // Organize jobs into groups on mount @@ -107,7 +109,6 @@ const JobDropdown = React.forwardRef( return (