Skip to content

Commit

Permalink
Lint the entire project (needed to be done since we added a new rule)
Browse files Browse the repository at this point in the history
MuffinLightning committed Apr 3, 2019
1 parent 1c7fe17 commit ef7dcc9
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/actions/BetActions.js
Original file line number Diff line number Diff line change
@@ -527,7 +527,7 @@ class BetActions {
betDiff.map((item) => {
item[0] = CurrencyUtils.correctFloatingPointPrecision([item[0], item[2]], currencyType);

if(item[1] === 'decrement') {
if (item[1] === 'decrement') {
changeType = BetTypes.DECREMENT;
}

2 changes: 1 addition & 1 deletion src/components/BettingDrawers/BetTable/BetTableInput.jsx
Original file line number Diff line number Diff line change
@@ -297,7 +297,7 @@ class BetTableInput extends PureComponent {

// Override the disabled state of the input fields if the default state of stake,
// undefined, is present.
if(isEmpty || oddsPopulated || this.props.autoOddsPopulated > 0){
if (isEmpty || oddsPopulated || this.props.autoOddsPopulated > 0){
isValid = true;
} else {
isValid = isValidBetTotal;
2 changes: 1 addition & 1 deletion src/components/BettingDrawers/MarketDrawer/PlaceBets.jsx
Original file line number Diff line number Diff line change
@@ -157,7 +157,7 @@ const mapStateToProps = (state, ownProps) => {
// If odds exists, it has either been provided by the user and is an incomplete bet or it has
// been provided via clicking a bet from the /exchange.
// If odds exists, autopopulated bets increment.
if( profit && odds && stake){
if ( profit && odds && stake){
autoOddsPopulated = autoOddsPopulated + 1;
}

Original file line number Diff line number Diff line change
@@ -189,7 +189,7 @@ const mapStateToProps = (state, ownProps) => {
// If odds exists, it has either been provided by the user and is an incomplete bet or it has
// been provided via clicking a bet from the /exchange.
// If odds exists, autopopulated bets increment.
if( profit && odds && stake){
if ( profit && odds && stake){
autoOddsPopulated = autoOddsPopulated + 1;
}

Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ const hasOffers = (record, index) => {

// This checks that there is a betting market exisiting to pair up with another.
// aka: a second team betting market to be a competitor to the first one
if(index && offers.getIn([index - 1, 'betting_market_id']) === undefined) {
if (index && offers.getIn([index - 1, 'betting_market_id']) === undefined) {
hasOffers = false;
}

Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ class SportsBookEventGroup extends PureComponent {
events.slice(start, finish).forEach((e) => {
let bmgs = e.get('bettingMarketGroups');

if(bmgs && !bmgs.isEmpty()) {
if (bmgs && !bmgs.isEmpty()) {
let bmg = bmgs.first();

eventsToDisplay.push(
2 changes: 1 addition & 1 deletion src/selectors/EventPageSelector.js
Original file line number Diff line number Diff line change
@@ -206,7 +206,7 @@ const getAllSportsData = createSelector(
activeEvents.map((e) => {
let bmgs = bmgsByEventID[e.get('id')];

if(bmgs) {
if (bmgs) {
bmgs = bmgs.filter((bmg) => {
let description = bmg.get('description').toUpperCase();
let passesFilters = false;
2 changes: 1 addition & 1 deletion src/utility/AppUtils.js
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ const AppUtils = {
getHomePath(mode) {
let path;

switch(mode) {
switch (mode) {
case BookieModes.EXCHANGE:
path = '/exchange';
break;

0 comments on commit ef7dcc9

Please sign in to comment.