From ef59d5ba5047159c8511ea42bcd18f582583a4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=C3=ADn=20Dufka?= Date: Fri, 3 May 2024 19:35:00 +0200 Subject: [PATCH] fix: do not send default value of policy decline --- lib/ui/new_group_page.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/new_group_page.dart b/lib/ui/new_group_page.dart index 7ff8f05..f7aba4d 100644 --- a/lib/ui/new_group_page.dart +++ b/lib/ui/new_group_page.dart @@ -150,7 +150,9 @@ class _NewGroupPageState extends State { policy['before'] = '${pad(_policyBeforeTime.hour)}:${pad(_policyBeforeTime.minute)}'; } - policy['decline'] = _policyDecline; + if (_policyDecline) { + policy['decline'] = true; + } if (_policyController.text.trim().isNotEmpty) { try {