cleanup code

This commit is contained in:
tzw
2024-01-23 16:28:08 +06:30
parent a1e87cdbf6
commit f3f75a80c6
96 changed files with 232 additions and 439 deletions

View File

@@ -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;
}