Skip to content

Commit

Permalink
changed variable for less than X hours to be more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
lukew-cogapp committed Oct 22, 2024
1 parent 372d72a commit 9c78b38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default class App extends Vue {
{
date: "",
hasEntry: false,
lessThanTwoHours: false,
lessThanFullDay: false,
},
],
};
Expand Down Expand Up @@ -273,7 +273,7 @@ export default class App extends Vue {
}
// Show circle if less than two hours
if (report.lessThanTwoHours) {
if (report.lessThanFullDay) {
return '<span class="text-orange-500 font-bold underline">○</span>'; // Orange circle if less than two hours
}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface Staff {
export interface WeekReport {
date: string;
hasEntry: boolean;
lessThanTwoHours: boolean;
lessThanFullDay: boolean;
}

export interface WeekReportsData {
Expand Down

0 comments on commit 9c78b38

Please sign in to comment.