null safety
This commit is contained in:
@@ -268,7 +268,7 @@ class _StaffEditorState extends State<StaffEditor> {
|
||||
_isLoading = true;
|
||||
});
|
||||
try {
|
||||
User _user = await staffModel.findUser(_phoneInput.text);
|
||||
User? _user = await staffModel.findUser(_phoneInput.text);
|
||||
if (_user == null) {
|
||||
showMsgDialog(context, "Error", _phoneInput.text + " not found!");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user