diff --git a/.changeset/strange-news-compete.md b/.changeset/strange-news-compete.md new file mode 100644 index 000000000000..9f961eafd1c3 --- /dev/null +++ b/.changeset/strange-news-compete.md @@ -0,0 +1,6 @@ +--- +"ledger-live-desktop": minor +"live-mobile": minor +--- + +Fetch FF every 5 minutes for LLM & LLD diff --git a/apps/ledger-live-desktop/src/renderer/components/FirebaseRemoteConfig.tsx b/apps/ledger-live-desktop/src/renderer/components/FirebaseRemoteConfig.tsx index 49a7a162b94e..dda9d5a5abe3 100644 --- a/apps/ledger-live-desktop/src/renderer/components/FirebaseRemoteConfig.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/FirebaseRemoteConfig.tsx @@ -134,8 +134,8 @@ export const FirebaseRemoteConfigProvider = ({ } }; fetchAndActivateConfig(); - // 1 hour fetch interval. TODO: make this configurable - const intervalId = window.setInterval(fetchAndActivateConfig, 1 * 60 * 60 * 1000); + // 5 minutes fetch interval. TODO: make this configurable + const intervalId = window.setInterval(fetchAndActivateConfig, 5 * 60 * 1000); return () => clearInterval(intervalId); }, [setConfig]); diff --git a/apps/ledger-live-mobile/src/components/FirebaseRemoteConfig.tsx b/apps/ledger-live-mobile/src/components/FirebaseRemoteConfig.tsx index b39a1927415f..6f597df22d0e 100644 --- a/apps/ledger-live-mobile/src/components/FirebaseRemoteConfig.tsx +++ b/apps/ledger-live-mobile/src/components/FirebaseRemoteConfig.tsx @@ -38,8 +38,8 @@ export const FirebaseRemoteConfigProvider = ({ } }; fetchConfig(); - // 1 hour fetch interval. TODO: make this configurable - const intervalId = setInterval(fetchConfig, 1 * 60 * 60 * 1000); + // 5 minutes fetch interval. TODO: make this configurable + const intervalId = setInterval(fetchConfig, 5 * 60 * 1000); return () => { clearInterval(intervalId); unmounted = true;