Using Object.values for shuffle token list for swaps (#15530)

feature/default_network_editable
Niranjana Binoy 2 years ago committed by GitHub
parent 024b41546b
commit 94f46fbb1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/pages/swaps/index.js

@ -136,8 +136,8 @@ export default function Swap() {
checkNetworkAndAccountSupports1559,
);
const defaultSwapsToken = useSelector(getSwapsDefaultToken, isEqual);
const tokenList = useSelector(getTokenList);
const shuffledTokensList = shuffle(Object.entries(tokenList));
const tokenList = useSelector(getTokenList, isEqual);
const shuffledTokensList = shuffle(Object.values(tokenList));
const reviewSwapClickedTimestamp = useSelector(getReviewSwapClickedTimestamp);
const pendingSmartTransactions = useSelector(getPendingSmartTransactions);
const reviewSwapClicked = Boolean(reviewSwapClickedTimestamp);

Loading…
Cancel
Save