Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
petermikitsh committed Jul 24, 2018
1 parent 40c9dfc commit fdd7fa1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/client/components/Balances/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const ErrorHelper = ({ error }) => (
</div>
);

ErrorHelper.propTypes = {
error: PropTypes.node.isRequired,
};

class BalanceForm extends React.Component {
address = ({ input, meta: { error } }) => (
<div className={Styles.form}>
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/balances/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import feathers from '@feathersjs/feathers';
import { BadRequest, BadGateway } from '@feathersjs/errors';
import { BadRequest } from '@feathersjs/errors';
import service from '../index';
import { external } from '../../../__tests__/helpers';

Expand Down
2 changes: 1 addition & 1 deletion src/server/services/transactions/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function queryFromEtherscan() {
endblock,
sort,
).catch(e => (
Promise.reject(new BadGateway({ errors: { id: 'Unable to access Etherscan API' } }))
Promise.reject(new BadGateway(e, { errors: { id: 'Unable to access Etherscan API' } }))
));

// eslint-disable-next-line no-param-reassign
Expand Down

0 comments on commit fdd7fa1

Please sign in to comment.