From 183b337d6162be931555a93b0c6fff1724983c66 Mon Sep 17 00:00:00 2001 From: James Rich Date: Tue, 2 Jul 2024 16:37:12 -0500 Subject: [PATCH] Fix: Display correct hardware info in NodeInfo The hardware information displayed in the NodeInfo view was incorrect. This commit fixes the issue by using the correct node information to retrieve the hardware model string. --- app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt b/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt index 91731dcbc..afee480b1 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/NodeInfo.kt @@ -157,7 +157,7 @@ fun NodeInfo( textDecoration = TextDecoration.LineThrough.takeIf { isIgnored }, ) - val hwInfoString = thisNodeInfo?.user?.hwModelString + val hwInfoString = thatNodeInfo.user?.hwModelString if (hwInfoString != null){ Text( modifier = Modifier.constrainAs(hw) {