Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlajkim committed Dec 19, 2024
1 parent 32189b7 commit 9741d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/domains/action/action-group.domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export class ActionGroupDomain extends DomainRoot {
//
// if no action committed in the first place, it is level 0:
if (!ad) {
streak = 0 // reset streak as it is not committed
if (date !== end) streak = 0 // reset streak as it is not committed (BUT today is inclusive)
actionsDerived.push(
ActionDomain.fromEmpty(
this.props.id,
Expand All @@ -345,7 +345,7 @@ export class ActionGroupDomain extends DomainRoot {
}
// if dummy, level 0:
if (ad.isDummy) {
streak = 0 // reset streak as it is not committedstreaks = 0 // reset streak as it is not committed
streak = 0 // Dummy commit is considered no longer doable. So, reset streak.
actionsDerived.push(ad.toResDTO(0))
continue
}
Expand Down

0 comments on commit 9741d17

Please sign in to comment.