Skip to content

Commit

Permalink
Frontend round household member balance (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch authored Feb 23, 2025
1 parent dc7b17d commit 43cb42a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kitchenowl/lib/models/member.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ class Member extends User {
name: map['name'],
owner: map['owner'] ?? false,
admin: map['admin'] ?? false,
balance: map['expense_balance'] ?? 0,
balance:
((map['expense_balance'] as double? ?? 0) * 100).round().toDouble() /
100,
);
}

Expand Down

0 comments on commit 43cb42a

Please sign in to comment.