Skip to content

Commit

Permalink
Revert this code and see what happens
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Dec 11, 2024
1 parent f0b8d7d commit 1c2a362
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/components/UI/Swaps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,13 @@ function SwapsAmountView({
}, [navigation, route, colors]);

useEffect(() => {
let isStopped = false;

(async () => {
try {
const featureFlags = await swapsUtils.fetchSwapsFeatureFlags(
getFeatureFlagChainId(chainId),
AppConstants.SWAPS.CLIENT_ID,
);

if (isStopped) {
return;
}

const liveness = getSwapsLiveness(featureFlags, chainId);
setLiveness(chainId, featureFlags);

Expand Down Expand Up @@ -296,10 +290,6 @@ function SwapsAmountView({
navigation.pop();
}
})();

return () => {
isStopped = true;
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [initialSource, chainId, navigation, setLiveness]);

Expand Down

0 comments on commit 1c2a362

Please sign in to comment.