From 58090694374e75bd600f1ef763b858d52d92853a Mon Sep 17 00:00:00 2001 From: James Prado Date: Fri, 15 Dec 2017 22:17:53 -0500 Subject: [PATCH] Fix undefined bityRate pair (#597) * Update TODO comments & Remove old TODO comments * Fix undefined bityRate pair --- common/containers/Tabs/Swap/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/containers/Tabs/Swap/index.tsx b/common/containers/Tabs/Swap/index.tsx index e9520275..d90701c4 100644 --- a/common/containers/Tabs/Swap/index.tsx +++ b/common/containers/Tabs/Swap/index.tsx @@ -151,8 +151,7 @@ class Swap extends Component { outputTx }; - const { ETHBTC, ETHREP, BTCETH, BTCREP } = bityRates.byId; - const CurrentRatesProps = { ETHBTC, ETHREP, BTCETH, BTCREP }; + const CurrentRatesProps = bityRates.byId ? { ...bityRates.byId } : {}; return (