Skip to content

Commit

Permalink
Exclude PIZZA and BEER from ticker data fetching
Browse files Browse the repository at this point in the history
PIZZA is already an existing currency.
  • Loading branch information
sindresorhus committed May 22, 2018
1 parent de90a0d commit 52417c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/renderer/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ const getTickerData = async symbol => {
price: 0,
};

const excludedTestCurrencies = [
'PIZZA',
'BEER',
];
if (excludedTestCurrencies.includes(symbol)) {
return fallback;
}

const id = coinlist.get(symbol, 'id');
if (!id) { // For example, SUPERNET
return fallback;
Expand Down

0 comments on commit 52417c0

Please sign in to comment.