Skip to content

Commit

Permalink
Merge pull request #871 from givtnl/bug/kids-1151-default-amount-update
Browse files Browse the repository at this point in the history
Bugfix: Initial amount when adding a member (kids-1151)
  • Loading branch information
Daniela510 authored Jul 4, 2024
2 parents 30a3fdf + 2b26090 commit 79b8a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/features/children/add_member/widgets/add_member_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class _AddMemberFormState extends State<AddMemberForm> {
final _emailParentController = TextEditingController();
final _ageController = TextEditingController();
bool isChildSelected = true;
int _allowance = 15;
int _allowance = 5;
final formKeyChild = GlobalKey<FormState>();
final formKeyParent = GlobalKey<FormState>();
late final FocusNode _childNameFocusNode;
Expand Down Expand Up @@ -339,7 +339,7 @@ class _AddMemberFormState extends State<AddMemberForm> {
),
AllowanceCounter(
currency: currency,
initialAllowance: 5,
initialAllowance: _allowance,
canAmountBeZero: true,
onAllowanceChanged: (allowance) => _allowance = allowance,
),
Expand Down

0 comments on commit 79b8a14

Please sign in to comment.