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, checkNetworkAndAccountSupports1559,
); );
const defaultSwapsToken = useSelector(getSwapsDefaultToken, isEqual); const defaultSwapsToken = useSelector(getSwapsDefaultToken, isEqual);
const tokenList = useSelector(getTokenList); const tokenList = useSelector(getTokenList, isEqual);
const shuffledTokensList = shuffle(Object.entries(tokenList)); const shuffledTokensList = shuffle(Object.values(tokenList));
const reviewSwapClickedTimestamp = useSelector(getReviewSwapClickedTimestamp); const reviewSwapClickedTimestamp = useSelector(getReviewSwapClickedTimestamp);
const pendingSmartTransactions = useSelector(getPendingSmartTransactions); const pendingSmartTransactions = useSelector(getPendingSmartTransactions);
const reviewSwapClicked = Boolean(reviewSwapClickedTimestamp); const reviewSwapClicked = Boolean(reviewSwapClickedTimestamp);

Loading…
Cancel
Save