Use view model variable `hasRescan` instead [skip ci]
OmarHatem committed
Feb 8, 2023 at 18:45 UTC
27f242a5ee251ce1a6961a5bf4a7e7945a93a586
2 files changed
+2
-3
lib/src/screens/settings/connection_sync_page.dart
+1
-2
@@ -36,8 +36,7 @@ class ConnectionSyncPage extends BasePage {
36
handler: (context) => _presentReconnectAlert(context),
37
),
38
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
39
- if (dashboardViewModel.type != WalletType.bitcoin &&
40
- dashboardViewModel.type != WalletType.litecoin)
39
+ if (dashboardViewModel.hasRescan)
40
SettingsCellWithArrow(
41
title: S.current.rescan,
42
handler: (context) => Navigator.of(context).pushNamed(Routes.rescan),
lib/view_model/dashboard/dashboard_view_model.dart
+1
-1
@@ -239,7 +239,7 @@ abstract class DashboardViewModelBase with Store {
239
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo>
240
wallet;
241
242
- bool get hasRescan => wallet.type == WalletType.monero;
242
+ bool get hasRescan => wallet.type == WalletType.monero || wallet.type == WalletType.haven;
243
244
BalanceViewModel balanceViewModel;
245