diff --git a/cw_monero/lib/wallet.dart b/cw_monero/lib/wallet.dart index f1139c0d0..c0cd7b6fc 100644 --- a/cw_monero/lib/wallet.dart +++ b/cw_monero/lib/wallet.dart @@ -240,13 +240,13 @@ class SyncListener { _initialSyncHeight = 0; _updateSyncInfoTimer ??= Timer.periodic(Duration(milliseconds: 1200), (_) async { - if (isNewTransactionExist() ?? isNeededToRefresh() ?? false) { - onNewTransaction?.call(); - } - final _isNeededToRefresh = isNeededToRefresh(); print('isNeededToRefresh $_isNeededToRefresh'); + if (isNewTransactionExist() || _isNeededToRefresh) { + onNewTransaction?.call(); + } + var syncHeight = getSyncingHeight(); print('syncHeight $syncHeight');