From 2fbb2a1e466eb3a996d91bf28801b1eba912751c Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 25 Mar 2023 18:48:46 -0600 Subject: [PATCH] hide exchange reference if exchange not available --- lib/pages/stack_privacy_calls.dart | 7 ++++--- .../advanced_settings/stack_privacy_dialog.dart | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/pages/stack_privacy_calls.dart b/lib/pages/stack_privacy_calls.dart index 8dc98a23d..783a0ec16 100644 --- a/lib/pages/stack_privacy_calls.dart +++ b/lib/pages/stack_privacy_calls.dart @@ -148,9 +148,10 @@ class _StackPrivacyCalls extends ConsumerState { ), children: infoToggle ? [ - const TextSpan( - text: - "Exchange data preloaded for a seamless experience."), + if (Constants.enableExchange) + const TextSpan( + text: + "Exchange data preloaded for a seamless experience."), const TextSpan( text: "\n\nCoinGecko enabled: (24 hour price change shown in-app, total wallet value shown in USD or other currency)."), diff --git a/lib/pages_desktop_specific/settings/settings_menu/advanced_settings/stack_privacy_dialog.dart b/lib/pages_desktop_specific/settings/settings_menu/advanced_settings/stack_privacy_dialog.dart index 9045e0006..ecd22237c 100644 --- a/lib/pages_desktop_specific/settings/settings_menu/advanced_settings/stack_privacy_dialog.dart +++ b/lib/pages_desktop_specific/settings/settings_menu/advanced_settings/stack_privacy_dialog.dart @@ -96,9 +96,10 @@ class _StackPrivacyDialog extends ConsumerState { ), children: infoToggle ? [ - const TextSpan( - text: - "Exchange data preloaded for a seamless experience."), + if (Constants.enableExchange) + const TextSpan( + text: + "Exchange data preloaded for a seamless experience."), const TextSpan( text: "\n\nCoinGecko enabled: (24 hour price change shown in-app, total wallet value shown in USD or other currency)."),