Use view model variable hasRescan instead [skip ci]

This commit is contained in:
OmarHatem 2023-02-08 18:45:38 +02:00
parent 9a5244ffed
commit 27f242a5ee
2 changed files with 2 additions and 3 deletions

View file

@ -36,8 +36,7 @@ class ConnectionSyncPage extends BasePage {
handler: (context) => _presentReconnectAlert(context),
),
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
if (dashboardViewModel.type != WalletType.bitcoin &&
dashboardViewModel.type != WalletType.litecoin)
if (dashboardViewModel.hasRescan)
SettingsCellWithArrow(
title: S.current.rescan,
handler: (context) => Navigator.of(context).pushNamed(Routes.rescan),

View file

@ -239,7 +239,7 @@ abstract class DashboardViewModelBase with Store {
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo>
wallet;
bool get hasRescan => wallet.type == WalletType.monero;
bool get hasRescan => wallet.type == WalletType.monero || wallet.type == WalletType.haven;
BalanceViewModel balanceViewModel;