From b161b541470fc72a1449f6e9304ed483f8fb2840 Mon Sep 17 00:00:00 2001 From: fuwa Date: Fri, 29 Nov 2019 03:28:11 +0800 Subject: [PATCH] do not show count for single tx --- cyberwow/lib/widget/synced.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyberwow/lib/widget/synced.dart b/cyberwow/lib/widget/synced.dart index 58b1497..6d68964 100644 --- a/cyberwow/lib/widget/synced.dart +++ b/cyberwow/lib/widget/synced.dart @@ -34,7 +34,7 @@ Widget summary(BuildContext context, SyncedState state) { final onFire = state.getTransactionPool.length >= 10; final onFireNotice = onFire ? ' 🔥' : ''; final poolLength = state.getTransactionPool.length; - final poolLengthNotice = poolLength > 0 ? '[${poolLength}] ' : ''; + final poolLengthNotice = poolLength > 1 ? '[${poolLength}] ' : ''; final txNotice = state.getTransactionPool.isEmpty ? '' : poolLengthNotice + state.getTransactionPool.first['id '].substring(0, 6) + ' ...';