Skip to content

Commit 22c5d89

Browse files
committed
revert change to country randomizing
1 parent 44b3801 commit 22c5d89

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/components/EthExchanges/use-eth-exchanges.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,16 @@ export const useEthExchanges = () => {
493493
}
494494

495495
// Add `value` & `label` for Select component
496-
const exchangesByCountry: Array<ExchangeByCountry> = shuffle(
497-
data.exchangesByCountry.nodes.map((node) => {
498-
return {
499-
value: node.country,
500-
label: node.country,
501-
exchanges: node,
502-
}
503-
})
504-
)
496+
const exchangesByCountry: Array<ExchangeByCountry> =
497+
data.exchangesByCountry.nodes
498+
.map((node) => {
499+
return {
500+
value: node.country,
501+
label: node.country,
502+
exchanges: node,
503+
}
504+
})
505+
.sort((a, b) => a.value.localeCompare(b.value))
505506

506507
const exchangesArray = Object.keys(exchanges) as Array<ExchangeName>
507508
const walletProvidersArray = Object.keys(

0 commit comments

Comments
 (0)