From 2a202bb60d06a5a6aa1898075666aae216f4b149 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 29 Jan 2023 02:11:07 -0800 Subject: [PATCH] Don't allow selecting skill without selecting job --- components/JobSection/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx index 96bc374b..e0c68a4d 100644 --- a/components/JobSection/index.tsx +++ b/components/JobSection/index.tsx @@ -115,7 +115,7 @@ const JobSection = (props: Props) => { const canEditSkill = (skill?: JobSkill) => { // If there is a job and a skill present in the slot - if (job) { + if (job && job.id !== '-1') { // If the skill's job is one of the job's main skill if (skill && skill.job.id === job.id && skill.main) return false