diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx index 09e78b8f..50b390a7 100644 --- a/components/JobSection/index.tsx +++ b/components/JobSection/index.tsx @@ -84,11 +84,13 @@ const JobSection = (props: Props) => { } const canEditSkill = (skill?: JobSkill) => { - if (job && skill) { - if (skill.job.id === job.id && skill.main && !skill.sub) return false - } + // If there is a job and a skill present in the slot + if (job) { + // If the skill's job is one of the job's main skill + if (skill && skill.job.id === job.id && skill.main) return false - return props.editable + return props.editable + } else return false } const skillItem = (index: number, editable: boolean) => {