Skip to content

Commit

Permalink
make timeBudget field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybadgujar102 committed May 23, 2024
1 parent f87475b commit c0f0724
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/constants/starterGoals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ starterGoals.push(
id: dailyHabitsId,
afterTime: null,
beforeTime: null,
timeBudget: undefined,
sublist: [otherGoalIds[5], otherGoalIds[6], otherGoalIds[7], otherGoalIds[8], otherGoalIds[9]],
},
},
Expand Down
1 change: 0 additions & 1 deletion src/helpers/GoalProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export const createGoalObjectFromTags = (obj: object) => {
language: "English",
habit: null,
on: null,
timeBudget: undefined,
duration: null,
start: null,
due: null,
Expand Down
10 changes: 4 additions & 6 deletions src/models/GoalItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ export interface GoalItem {
link: string | null;
participants: IParticipant[];
rootGoalId: string;
timeBudget:
| {
perDay: string;
perWeek: string;
}
| undefined;
timeBudget?: {
perDay: string;
perWeek: string;
};
typeOfGoal: "myGoal" | "shared";
category: TGoalCategory;
newUpdates: boolean;
Expand Down

0 comments on commit c0f0724

Please sign in to comment.