Skip to content

Commit

Permalink
Merge shared smartTransactions feature flags with network specific ones
Browse files Browse the repository at this point in the history
  • Loading branch information
dan437 committed Nov 14, 2024
1 parent da66442 commit b0afb12
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/reducers/swaps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,15 @@ export const swapsSmartTxFlagEnabled = createSelector(
export const selectSwapsChainFeatureFlags = createSelector(
swapsStateSelector,
chainIdSelector,
(swapsState, chainId) => swapsState[chainId].featureFlags,
(swapsState, chainId) => {

Check failure on line 92 in app/reducers/swaps/index.js

View workflow job for this annotation

GitHub Actions / scripts (lint)

Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`
return {
...swapsState[chainId].featureFlags,
smartTransactions: {
...swapsState[chainId].featureFlags.smartTransactions,
...swapsState.featureFlags.smartTransactions,
},
};
},
);

/**
Expand Down

0 comments on commit b0afb12

Please sign in to comment.