From 4651d9df68fef8c185bcbaf4b726c563036ec2af Mon Sep 17 00:00:00 2001 From: Sahil Yeole Date: Fri, 20 Oct 2023 04:50:07 +0530 Subject: [PATCH] fix textToFind Signed-off-by: Sahil Yeole --- flutter/lib/desktop/pages/connection_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index e714d979f..beae21d8b 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -259,13 +259,13 @@ class _ConnectionPageState extends State } else { String textWithoutSpaces = textEditingValue.text.replaceAll(" ", ""); - String textToFind = textWithoutSpaces.toLowerCase(); if (int.tryParse(textWithoutSpaces) != null) { textEditingValue = TextEditingValue( text: textWithoutSpaces, selection: textEditingValue.selection, ); } + String textToFind = textEditingValue.text.toLowerCase(); return peers.where((peer) => peer.id.toLowerCase().contains(textToFind) ||