Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
Update a return value

Update a test
  • Loading branch information
dan437 committed Nov 14, 2024
1 parent b0afb12 commit 8bf0284
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions app/reducers/swaps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,13 @@ export const swapsSmartTxFlagEnabled = createSelector(
export const selectSwapsChainFeatureFlags = createSelector(
swapsStateSelector,
chainIdSelector,
(swapsState, chainId) => {
return {
...swapsState[chainId].featureFlags,
smartTransactions: {
...swapsState[chainId].featureFlags.smartTransactions,
...swapsState.featureFlags.smartTransactions,
},
};
},
(swapsState, chainId) => ({
...swapsState[chainId].featureFlags,
smartTransactions: {
...(swapsState[chainId].featureFlags?.smartTransactions || {}),
...(swapsState.featureFlags?.smartTransactions || {}),
},
}),
);

/**
Expand Down

0 comments on commit 8bf0284

Please sign in to comment.