Don't allow selecting skill without selecting job
This commit is contained in:
parent
f2160b827c
commit
2a202bb60d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue