Skip to content

Commit

Permalink
Don't enact or save 0 minutes Temp Targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-b-m committed Mar 29, 2023
1 parent 263128a commit 4124034
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ extension AddTempTarget {
}

func enact() {
guard duration > 0 else {
return
}
var lowTarget = low

if viewPercantage {
Expand Down Expand Up @@ -74,6 +77,9 @@ extension AddTempTarget {
}

func save() {
guard duration > 0 else {
return
}
var lowTarget = low

if viewPercantage {
Expand Down

0 comments on commit 4124034

Please sign in to comment.