From d7c33b0ab5fc575e4741310bf7fbc15cde2834d0 Mon Sep 17 00:00:00 2001 From: M Date: Tue, 10 Nov 2020 13:47:36 +0200 Subject: [PATCH] Fixes --- cw_monero/lib/wallet.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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');