Skip to content

Commit

Permalink
Anders sin bug - takk Anders
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtho committed Nov 25, 2022
1 parent 48bd91d commit 5924d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PositionsCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
// Check if user has completed this card, send up result to parent (remember to run in save function as well)
const fieldsValidated = () => {
for (const t of competence.positionTasks) {
if (!(Array.isArray(t.tasks) && t.tasks.length > 0)) {
if ((t.positionId && t.positionId.includes('--')) && (!(Array.isArray(t.tasks) && t.tasks.length > 0))) {
setFieldToFinished('tasksCompleted', false)
return false
}
Expand Down

2 comments on commit 5924d16

@vercel
Copy link

@vercel vercel bot commented on 5924d16 Nov 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5924d16 Nov 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.