From aa1dab4b1a4e9a379e3afe452a7944b15423a506 Mon Sep 17 00:00:00 2001 From: malik1004x Date: Thu, 16 Jul 2026 13:42:31 +0200 Subject: [PATCH] fix tokens button appearing on litecoin (#3405) --- .../coins_page/assets_history/assets_history_section.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart b/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart index b987c11e2..d36d67bf3 100644 --- a/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart +++ b/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart @@ -49,6 +49,7 @@ class _AssetsHistorySectionState extends State { final oldTabLength = tabs.length; final hasAssetsTab = widget.dashboardViewModel.balanceViewModel.isHomeScreenSettingsEnabled || (widget.dashboardViewModel.hasMweb && widget.dashboardViewModel.mwebEnabled); + final hasAssetsButton = widget.dashboardViewModel.balanceViewModel.isHomeScreenSettingsEnabled; final hasNftTab = isNFTACtivatedChain(widget.dashboardViewModel.wallet.type, chainId: widget.dashboardViewModel.wallet.chainId); tabs = [ @@ -58,13 +59,14 @@ class _AssetsHistorySectionState extends State { AssetsSection( dashboardViewModel: widget.dashboardViewModel, ), + hasAssetsButton ? AssetsHistorySectionActionButton(S.current.tokens, "assets/new-ui/options_slider.svg", () { Navigator.of(context).pushNamed( Routes.homeSettings, arguments: widget.dashboardViewModel.balanceViewModel, ); - })), + }) : null), AssetsHistorySectionTab( S.current.history, HistorySection(