Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkrick committed Feb 28, 2017
1 parent af28be2 commit fbc6983
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/server/graphql/models/Action/actionQuery.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import getRethink from 'server/database/rethinkDriver';
import {GraphQLNonNull, GraphQLID, GraphQLInt} from 'graphql';
import {Action} from './actionSchema';
import {requireSUOrSelf} from 'server/utils/authorization';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
// RESOLUTION
return await r.table('Organization')
.getAll(userId, {index: 'orgUsers'})
.count()
.count();
}
},
orgDetails: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class NewTeamFormContainer extends Component {
render() {
const {initialOrgCount, initialValues, isNewOrg, organizations, router} = this.props;
if (initialOrgCount === 0) {
router.push('/newteam/1')
router.push('/newteam/1');
} else if (!initialValues.orgId) {
return null;
}
Expand All @@ -136,6 +136,8 @@ class NewTeamFormContainer extends Component {

NewTeamFormContainer.propTypes = {
dispatch: PropTypes.func.isRequired,
initialOrgCount: PropTypes.func.number,
initialValues: PropTypes.object,
isNewOrg: PropTypes.bool,
organizations: PropTypes.array,
router: PropTypes.object.isRequired,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const OrgBilling = (props) => {

OrgBilling.propTypes = {
invoices: PropTypes.array,
invoicesReady: PropTypes.bool,
styles: PropTypes.object,
org: PropTypes.object
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class CreditCardModalContainer extends Component {

checkCardType = (e) => {
const {stripeCard} = this.props;
if (e.currentTarget.value) {
if (stripeCard && e.currentTarget.value) {
const type = stripeCard.cardType(e.currentTarget.value);
const cardTypeIcon = cardTypeLookup[type];
if (cardTypeIcon !== this.state.cardTypeIcon) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const OrgBillingContainer = (props) => {
OrgBillingContainer.propTypes = {
dispatch: PropTypes.func,
invoiceList: PropTypes.array,
invoicesReady: PropTypes.bool,
org: PropTypes.object
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const UserActionListContainer = (props) => {
UserActionListContainer.propTypes = {
actions: PropTypes.array,
dispatch: PropTypes.func,
initialActionCount: PropTypes.number,
queryKey: PropTypes.string,
selectingNewActionTeam: PropTypes.bool,
teams: PropTypes.array,
Expand Down

0 comments on commit fbc6983

Please sign in to comment.