do not show count for single tx

pull/2/head
fuwa 4 years ago
parent 853b1c232e
commit b161b54147

@ -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) + ' ...';