Skip to content

Commit

Permalink
fix: do not send default value of policy decline
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed May 3, 2024
1 parent d6be731 commit ef59d5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui/new_group_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ class _NewGroupPageState extends State<NewGroupPage> {
policy['before'] =
'${pad(_policyBeforeTime.hour)}:${pad(_policyBeforeTime.minute)}';
}
policy['decline'] = _policyDecline;
if (_policyDecline) {
policy['decline'] = true;
}

if (_policyController.text.trim().isNotEmpty) {
try {
Expand Down

0 comments on commit ef59d5b

Please sign in to comment.