From f79daffa6a770b89f11033144f548c42cb3894a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Tue, 25 Sep 2018 17:55:46 +0200 Subject: [PATCH] Shuffle the Buy/Trade list --- src/components/ExchangePage/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ExchangePage/index.js b/src/components/ExchangePage/index.js index 9e612a78..09f3502b 100644 --- a/src/components/ExchangePage/index.js +++ b/src/components/ExchangePage/index.js @@ -2,6 +2,7 @@ import React, { PureComponent } from 'react' import { translate } from 'react-i18next' +import shuffle from 'lodash/shuffle' import type { T } from 'types/common' import { urls } from 'config/urls' @@ -21,7 +22,7 @@ type Props = { t: T, } -const cards = [ +const cards = shuffle([ { key: 'coinhouse', id: 'coinhouse', @@ -70,7 +71,7 @@ const cards = [ url: urls.genesis, logo: Genesis, }, -] +]) class ExchangePage extends PureComponent { render() {