cleanup code
This commit is contained in:
@@ -191,7 +191,7 @@ class _CustomerListState extends State<CustomerList> {
|
||||
}
|
||||
|
||||
Widget getCount(User customer) {
|
||||
return customer.fcsUnseenCount != null && customer.fcsUnseenCount > 0
|
||||
return customer.fcsUnseenCount > 0
|
||||
? Container(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
decoration:
|
||||
|
||||
@@ -146,10 +146,7 @@ class _InvitationCreateState extends State<InvitationCreate> {
|
||||
_invite() async {
|
||||
String userName = _nameController.text;
|
||||
String phoneNumber = dialCode + _phoneController.text;
|
||||
if (userName == null ||
|
||||
userName == "" ||
|
||||
phoneNumber == null ||
|
||||
phoneNumber == "") {
|
||||
if (userName == "" || phoneNumber == "") {
|
||||
showMsgDialog(context, "Error", "Invalid name or phone number");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user