Fix undefined bityRate pair (#597)

* Update TODO comments & Remove old TODO comments

* Fix undefined bityRate pair
This commit is contained in:
James Prado 2017-12-15 22:17:53 -05:00 committed by Daniel Ternyak
parent f6410646c0
commit 5809069437
1 changed files with 1 additions and 2 deletions

View File

@ -151,8 +151,7 @@ class Swap extends Component<ReduxActionProps & ReduxStateProps, {}> {
outputTx
};
const { ETHBTC, ETHREP, BTCETH, BTCREP } = bityRates.byId;
const CurrentRatesProps = { ETHBTC, ETHREP, BTCETH, BTCREP };
const CurrentRatesProps = bityRates.byId ? { ...bityRates.byId } : {};
return (
<TabSection>