From 707613115cb88ea1b4acf0801aa919dedf728e8a Mon Sep 17 00:00:00 2001 From: poka Date: Fri, 8 Jan 2021 02:19:19 +0100 Subject: [PATCH] Display balance only if pubkey is not empty --- lib/ui/historyScreen.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ui/historyScreen.dart b/lib/ui/historyScreen.dart index 0ef4198..3f305d3 100644 --- a/lib/ui/historyScreen.dart +++ b/lib/ui/historyScreen.dart @@ -190,9 +190,10 @@ class HistoryScreenState extends State { child: ListView( controller: _scrollController, children: [ - Text(balance.toString() + ' Ğ1', - textAlign: TextAlign.center, - style: TextStyle(fontSize: 30.0, color: Colors.black)), + if (this.pubkey != '') + Text(balance.toString() + ' Ğ1', + textAlign: TextAlign.center, + style: TextStyle(fontSize: 30.0, color: Colors.black)), for (var repository in _transBC) ListTile( contentPadding: const EdgeInsets.all(5.0),