Fix trace route bytes generation logic in Contact model

This commit is contained in:
Winston Lowe
2026-02-15 11:44:35 -08:00
parent aed3b0157a
commit 63aa515f52
+1 -1
View File
@@ -119,7 +119,7 @@ class Contact {
final pathBytes = _pathBytesForDisplay;
Uint8List? traceBytes;
if (pathLength <= 0) {
if (pathBytes.isEmpty) {
traceBytes = Uint8List(1);
traceBytes[0] = publicKey[0];
return traceBytes;