From 892a60de165bc1f22816ca77dc55b39a199108bc Mon Sep 17 00:00:00 2001 From: Elizaveta Semenova Date: Mon, 19 Feb 2024 13:12:23 +0300 Subject: [PATCH] [ETH-997] Update remove config settings --- .../Services/WarmupService/RemoteConfigWarmup.swift | 10 +++++----- .../Scenes/Main/Crypto/Container/CryptoViewModel.swift | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/p2p_wallet/Common/Services/WarmupService/RemoteConfigWarmup.swift b/p2p_wallet/Common/Services/WarmupService/RemoteConfigWarmup.swift index 0b38720e64..fbfcdbf21f 100644 --- a/p2p_wallet/Common/Services/WarmupService/RemoteConfigWarmup.swift +++ b/p2p_wallet/Common/Services/WarmupService/RemoteConfigWarmup.swift @@ -33,12 +33,12 @@ class RemoteConfigWarmupProcess: WarmupProcess { let currentEndpoints = APIEndPoint.definedEndpoints let defaultFlags = StaticFlagsFetcher(featureFlags: []) - #if !RELEASE - let settings = RemoteConfigSettings() - // WARNING: Don't actually do this in production! - settings.minimumFetchInterval = 0 - RemoteConfig.remoteConfig().configSettings = settings + let settings = RemoteConfigSettings() + settings.minimumFetchInterval = 0 + RemoteConfig.remoteConfig().configSettings = settings + + #if !RELEASE FeatureFlagProvider.shared.fetchFeatureFlags( mainFetcher: MergingFlagsFetcher( primaryFetcher: DebugMenuFeaturesProvider.shared, diff --git a/p2p_wallet/Scenes/Main/Crypto/Container/CryptoViewModel.swift b/p2p_wallet/Scenes/Main/Crypto/Container/CryptoViewModel.swift index 66520a98c0..33e787085b 100644 --- a/p2p_wallet/Scenes/Main/Crypto/Container/CryptoViewModel.swift +++ b/p2p_wallet/Scenes/Main/Crypto/Container/CryptoViewModel.swift @@ -81,6 +81,7 @@ final class CryptoViewModel: BaseViewModel, ObservableObject { } updateAddressIfNeeded() analyticsManager.log(event: .cryptoScreenOpened) + displayReferralBanner = available(.referralProgramEnabled) } func copyToClipboard() {