fix tokens button appearing on litecoin (#3405)
malik1004x committed
Jul 16, 2026 at 13:42 UTC
aa1dab4b1a4e9a379e3afe452a7944b15423a506
1 file changed
+3
-1
lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart
+3
-1
@@ -49,6 +49,7 @@ class _AssetsHistorySectionState extends State<AssetsHistorySection> {
49
final oldTabLength = tabs.length;
50
final hasAssetsTab = widget.dashboardViewModel.balanceViewModel.isHomeScreenSettingsEnabled ||
51
(widget.dashboardViewModel.hasMweb && widget.dashboardViewModel.mwebEnabled);
52
+ final hasAssetsButton = widget.dashboardViewModel.balanceViewModel.isHomeScreenSettingsEnabled;
53
final hasNftTab = isNFTACtivatedChain(widget.dashboardViewModel.wallet.type,
54
chainId: widget.dashboardViewModel.wallet.chainId);
55
tabs = [
@@ -58,13 +59,14 @@ class _AssetsHistorySectionState extends State<AssetsHistorySection> {
59
AssetsSection(
60
dashboardViewModel: widget.dashboardViewModel,
61
),
62
+ hasAssetsButton ?
63
AssetsHistorySectionActionButton(S.current.tokens, "assets/new-ui/options_slider.svg",
64
() {
65
Navigator.of(context).pushNamed(
66
Routes.homeSettings,
67
arguments: widget.dashboardViewModel.balanceViewModel,
68
);
67
- })),
69
+ }) : null),
70
AssetsHistorySectionTab(
71
S.current.history,
72
HistorySection(