From 1c2a362834d2efee8c146be82a949b4e2223b3e0 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Tue, 10 Dec 2024 17:14:43 -0700 Subject: [PATCH] Revert this code and see what happens --- app/components/UI/Swaps/index.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/components/UI/Swaps/index.js b/app/components/UI/Swaps/index.js index fb08e469161..d11639c137f 100644 --- a/app/components/UI/Swaps/index.js +++ b/app/components/UI/Swaps/index.js @@ -254,8 +254,6 @@ function SwapsAmountView({ }, [navigation, route, colors]); useEffect(() => { - let isStopped = false; - (async () => { try { const featureFlags = await swapsUtils.fetchSwapsFeatureFlags( @@ -263,10 +261,6 @@ function SwapsAmountView({ AppConstants.SWAPS.CLIENT_ID, ); - if (isStopped) { - return; - } - const liveness = getSwapsLiveness(featureFlags, chainId); setLiveness(chainId, featureFlags); @@ -296,10 +290,6 @@ function SwapsAmountView({ navigation.pop(); } })(); - - return () => { - isStopped = true; - }; // eslint-disable-next-line react-hooks/exhaustive-deps }, [initialSource, chainId, navigation, setLiveness]);