Skip to content

Commit

Permalink
- Adjusting Persistent Timer Overlay Widget to always ensure there is…
Browse files Browse the repository at this point in the history
… 1 second remaining even if the amount subtracted would bring it to 0 or below
  • Loading branch information
Matthew Olivo committed Oct 13, 2024
1 parent 9469e7e commit 86569fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public override async Task ProcessEvent(UserV2ViewModel user, double amount)
else
{
this.CurrentAmount += (int)amount;
this.CurrentAmount = Math.Max(this.CurrentAmount, 0);
this.CurrentAmount = Math.Max(this.CurrentAmount, 1);
}

if (amount != 0)
Expand Down

0 comments on commit 86569fc

Please sign in to comment.