1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Sort add network list alphabetically (#16089)

Co-authored-by: ryanml <ryanlanese@gmail.com>
This commit is contained in:
Dan J Miller 2022-10-14 11:47:14 -02:30 committed by seaona
parent e7749470ae
commit ebf1ab2c9d

View File

@ -49,7 +49,7 @@ const AddNetwork = () => {
const infuraRegex = /infura.io/u;
const nets = FEATURED_RPCS.sort((a, b) =>
a.ticker > b.ticker ? 1 : -1,
a.nickname > b.nickname ? 1 : -1,
).slice(0, FEATURED_RPCS.length);
const notFrequentRpcNetworks = nets.filter(