diff --git a/lib/views/pages/user/requests/create_request.dart b/lib/views/pages/user/requests/create_request.dart index 63c426e0..14d7eb36 100644 --- a/lib/views/pages/user/requests/create_request.dart +++ b/lib/views/pages/user/requests/create_request.dart @@ -310,6 +310,10 @@ class CreateRequestPageState extends State { Fluttertoast.showToast(msg: _subtitle.noDateFound); return; } + if (widget.serviceRequest != null && (_serviceRequest?.engineerId == null || (_serviceRequest?.engineerId?.isEmpty ?? false))) { + await Fluttertoast.showToast(msg: "No Assigned Employee"); + return; + } _formKey.currentState.save(); _serviceRequest.deviceId = _device?.id; _isLoading = true;