diff --git a/src/components/BettingDrawers/MarketDrawer/MatchedBets.jsx b/src/components/BettingDrawers/MarketDrawer/MatchedBets.jsx
index 17503c721..57261d3e3 100644
--- a/src/components/BettingDrawers/MarketDrawer/MatchedBets.jsx
+++ b/src/components/BettingDrawers/MarketDrawer/MatchedBets.jsx
@@ -34,7 +34,7 @@ class MatchedBets extends PureComponent {
/>
{ !this.props.bets.isEmpty() &&
- this.props.clickAverageOdds(e.target.checked) }>
+ this.props.clickAverageOdds(e.target.checked) } checked={ this.props.averageOdds }>
{ I18n.t('market_drawer.matched_bets.average_odds') }
@@ -72,7 +72,7 @@ const groupBetsByAverageOdds = (matchedBets, oddsFormat, currencyFormat) => {
}).toList();
}
-const mapStateToProps = (state, ownProps) => {
+const mapStateToProps = (state) => {
const matchedBets = state.getIn(['marketDrawer', 'matchedBets']);
const groupByAverageOdds = state.getIn(['marketDrawer', 'groupByAverageOdds']);
const oddsFormat = MyAccountPageSelector.oddsFormatSelector(state)
diff --git a/src/components/BettingDrawers/MarketDrawer/PlacedBets.jsx b/src/components/BettingDrawers/MarketDrawer/PlacedBets.jsx
index 7dc75d09a..9004410ed 100644
--- a/src/components/BettingDrawers/MarketDrawer/PlacedBets.jsx
+++ b/src/components/BettingDrawers/MarketDrawer/PlacedBets.jsx
@@ -57,7 +57,7 @@ class PlacedBets extends PureComponent {
totalBetAmountString={ this.props.totalBetAmountString }
/>
}
- { !this.props.isEmpty && }
+ { !this.props.isEmpty && }
{ this.props.isEmpty &&
{
+ const averageOdds = state.getIn(['marketDrawer', 'groupByAverageOdds']);
const unmatchedBets = state.getIn(['marketDrawer', 'unmatchedBets']);
const matchedBets = state.getIn(['marketDrawer', 'matchedBets']);
// Total Bet amount for updated bets ONLY
@@ -115,7 +116,8 @@ const mapStateToProps = (state, ownProps) => {
numberOfGoodBets,
numberOfBadBets: updatedBets.size - numberOfGoodBets,
totalBetAmountFloat: totalAmount + transactionFee,
- totalBetAmountString: CurrencyUtils.toFixed('transaction', totalAmount + transactionFee, ownProps.currencyFormat)
+ totalBetAmountString: CurrencyUtils.toFixed('transaction', totalAmount + transactionFee, ownProps.currencyFormat),
+ averageOdds
}
}