From e8720285304da84ab2afe17a133055bcf9a02b9a Mon Sep 17 00:00:00 2001 From: vekaste <vekaste@stud.ntnu.no> Date: Wed, 1 May 2024 15:03:37 +0200 Subject: [PATCH] feat: fixed ts fault --- src/components/SavingGoalComponents/SavingGoalRoadmap.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SavingGoalComponents/SavingGoalRoadmap.vue b/src/components/SavingGoalComponents/SavingGoalRoadmap.vue index 088c8c5..0f31c09 100644 --- a/src/components/SavingGoalComponents/SavingGoalRoadmap.vue +++ b/src/components/SavingGoalComponents/SavingGoalRoadmap.vue @@ -236,7 +236,7 @@ export default { disableAllChecksThatNotCurrent() { this.selectedGoal.challenges.forEach((challenge: ChallengeDTO, index: number) => { - if (index != this.currentChallengeIndex) { + if (index !== this.currentChallengeIndex && challenge.checkDays !== undefined) { for (let i = 1; i < challenge.checkDays + 1; i++) { this.lockCheckBox(challenge, i) } -- GitLab