chore: Simplify bootstrap

This commit is contained in:
Christian Pauly 2021-01-23 11:57:47 +01:00
commit c6d9fcd91a
4 changed files with 36 additions and 120 deletions

View file

@ -78,9 +78,7 @@ class _InvitationSelectionState extends State<InvitationSelection> {
void searchUser(BuildContext context, String text) async {
coolDown?.cancel();
if (text.isEmpty) {
setState(() {
foundProfiles = [];
});
setState(() => foundProfiles = []);
}
currentSearchTerm = text;
if (currentSearchTerm.isEmpty) return;