Skip to content

Commit

Permalink
Merge pull request #235 from Anu6is/Fix-234
Browse files Browse the repository at this point in the history
Fix - Error message after creating new Bucket [resolves #234]
  • Loading branch information
TheAxelander authored May 20, 2024
2 parents 44dddd0 + 2759b38 commit 170a480
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,14 @@ private void CalculateValues()
#endregion*/

#region Balance, In & Out

var figures = ServiceManager.BucketService.GetFigures(BucketId, _currentYearMonth);
Balance = figures.Balance ?? 0;
In = figures.Input;
Activity = figures.Output;

if (BucketId != default)
{
var figures = ServiceManager.BucketService.GetFigures(BucketId, _currentYearMonth);
Balance = figures.Balance ?? 0;
In = figures.Input;
Activity = figures.Output;
}

#endregion

Expand Down

0 comments on commit 170a480

Please sign in to comment.