diff --git a/app/src/main/java/com/geeksville/mesh/ui/connections/ConnectionsScreen.kt b/app/src/main/java/com/geeksville/mesh/ui/connections/ConnectionsScreen.kt index 0a6c746e0..3206b3325 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/connections/ConnectionsScreen.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/connections/ConnectionsScreen.kt @@ -104,7 +104,6 @@ fun ConnectionsScreen( connectionsViewModel.connectionState.collectAsStateWithLifecycle(ConnectionState.DISCONNECTED) val scanning by scanModel.spinner.collectAsStateWithLifecycle(false) val context = LocalContext.current - val info by connectionsViewModel.myNodeInfo.collectAsStateWithLifecycle() val ourNode by connectionsViewModel.ourNodeInfo.collectAsStateWithLifecycle() val selectedDevice by scanModel.selectedNotNullFlow.collectAsStateWithLifecycle() val bluetoothState by connectionsViewModel.bluetoothState.collectAsStateWithLifecycle() @@ -149,15 +148,12 @@ fun ConnectionsScreen( LaunchedEffect(connectionState, regionUnset) { when (connectionState) { ConnectionState.CONNECTED -> { - if (regionUnset) R.string.must_set_region else R.string.connected_to + if (regionUnset) R.string.must_set_region else R.string.connected } ConnectionState.DISCONNECTED -> R.string.not_connected ConnectionState.DEVICE_SLEEP -> R.string.connected_sleeping - }.let { - val firmwareString = info?.firmwareString ?: context.getString(R.string.unknown) - scanModel.setErrorText(context.getString(it, firmwareString)) - } + }.let { scanModel.setErrorText(context.getString(it)) } } Scaffold(