Skip to content

Commit 6f25244

Browse files
authored
Merge pull request #30 from urlDev/update-default-market-type
Update default market in home page
2 parents 6cb64c0 + 4c86f13 commit 6f25244

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/market-components/MarketComponents.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from './MarketComponents.styles';
1818

1919
// First, I made market types array, the ones that I want to show in home page
20-
export const marketTypes = ['Stocks', 'Crypto', 'Forex', 'Commodities'];
20+
export const marketTypes = ['Crypto', 'Forex', 'Commodities', 'Stocks'];
2121

2222
const MarketComponents = () => {
2323
const { loadingChart, marketType, marketName } = useSelector(

src/redux/reducers/chart.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const initialState = {
55
forex: [],
66
errorChart: null,
77
// Indexes (market type index's symbols) are first to load.
8-
marketType: 'AAPL,FB,GOOG,TSLA,NFLX,AMZN',
9-
marketName: 'Stocks',
8+
marketType: 'BTCUSD,LTCUSD,XLMUSD,BCNUSD,ETHUSD,ETCUSD',
9+
marketName: 'Crypto',
1010
marketDetail: {},
1111
chartData: [],
1212
chartTimeFrame: '1hour',

src/utils/fetch-market-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const fetchMarketTypes = (dispatch, market) => {
3737
dispatch(changeMarketName('Commodities')),
3838
];
3939
default:
40-
return Stocks;
40+
return Crypto;
4141
}
4242
};
4343

0 commit comments

Comments
 (0)