remove eslint warning because store was undefined since it was global

This commit is contained in:
Daniel Ternyak 2017-06-19 00:49:52 -05:00
parent 6f638c66da
commit 67d57c3d4b
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ export default class WantToSwapMy extends Component {
let newOriginKind = event.target.value; let newOriginKind = event.target.value;
this.props.swapOriginKindTo(newOriginKind); this.props.swapOriginKindTo(newOriginKind);
// https://github.com/reactjs/redux/issues/1543#issuecomment-201399259 // https://github.com/reactjs/redux/issues/1543#issuecomment-201399259
let store = window.store;
let destinationKind = store.getState().swap.destinationKind; let destinationKind = store.getState().swap.destinationKind;
let pairName = combineAndUpper(newOriginKind, destinationKind); let pairName = combineAndUpper(newOriginKind, destinationKind);
let bityRate = this.props.bityRates[pairName]; let bityRate = this.props.bityRates[pairName];