From 67d57c3d4ba000b3e0e813884dfa93e5e6c714f7 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Mon, 19 Jun 2017 00:49:52 -0500 Subject: [PATCH] remove eslint warning because store was undefined since it was global --- common/containers/Tabs/Swap/components/wantToSwapMy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/common/containers/Tabs/Swap/components/wantToSwapMy.js b/common/containers/Tabs/Swap/components/wantToSwapMy.js index 5498e7aa..befcbadd 100644 --- a/common/containers/Tabs/Swap/components/wantToSwapMy.js +++ b/common/containers/Tabs/Swap/components/wantToSwapMy.js @@ -99,6 +99,7 @@ export default class WantToSwapMy extends Component { let newOriginKind = event.target.value; this.props.swapOriginKindTo(newOriginKind); // https://github.com/reactjs/redux/issues/1543#issuecomment-201399259 + let store = window.store; let destinationKind = store.getState().swap.destinationKind; let pairName = combineAndUpper(newOriginKind, destinationKind); let bityRate = this.props.bityRates[pairName];