From 94f46fbb1e3b203812f4b44589cda2034bfa3d9c Mon Sep 17 00:00:00 2001 From: Niranjana Binoy <43930900+NiranjanaBinoy@users.noreply.github.com> Date: Wed, 10 Aug 2022 15:10:41 -0400 Subject: [PATCH] Using Object.values for shuffle token list for swaps (#15530) --- ui/pages/swaps/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/pages/swaps/index.js b/ui/pages/swaps/index.js index ea1ef45ae..e9331eda3 100644 --- a/ui/pages/swaps/index.js +++ b/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);