You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
349 B
16 lines
349 B
6 years ago
|
import coinlist from 'coinlist';
|
||
|
|
||
|
const nameOverrides = new Map(Object.entries({
|
||
|
QRL: 'Quantum R L',
|
||
|
HTH: 'HelpTheHomeless'
|
||
|
}));
|
||
|
|
||
|
const getCoinName = coin => {
|
||
|
const override = nameOverrides.get(coin.symbol);
|
||
|
const coinlistName = coinlist.get(coin.symbol, 'name');
|
||
|
|
||
|
return override || coinlistName || coin.name;
|
||
|
};
|
||
|
|
||
|
export default getCoinName;
|