Browse Source

fix(lint): fix linting errors

renovate/lint-staged-8.x
Jack Mallers 8 years ago
parent
commit
a158cbae85
  1. 2
      app/reducers/form.js
  2. 4
      app/reducers/payment.js
  3. 4
      test/reducers/__snapshots__/payment.spec.js.snap

2
app/reducers/form.js

@ -95,7 +95,7 @@ const paymentRequestSelector = state => state.form.payment_request
formSelectors.isOnchain = createSelector(
paymentRequestSelector,
paymentRequest => {
(paymentRequest) => {
// TODO: work with bitcoin-js to fix p2wkh error and make testnet/mainnet dynamic
try {
bitcoin.address.toOutputScript(paymentRequest, bitcoin.networks.testnet)

4
app/reducers/payment.js

@ -97,9 +97,7 @@ const ACTION_HANDLERS = {
[GET_PAYMENTS]: state => ({ ...state, paymentLoading: true }),
[SEND_PAYMENT]: state => ({ ...state, sendingPayment: true }),
[RECEIVE_PAYMENTS]: (state, { payments }) => ({ ...state, paymentLoading: false, payments }),
[PAYMENT_SUCCESSFULL]: (state, { payment }) => (
{ ...state, sendingPayment: false }
)
[PAYMENT_SUCCESSFULL]: state => ({ ...state, sendingPayment: false })
}
const paymentSelectors = {}

4
test/reducers/__snapshots__/payment.spec.js.snap

@ -13,9 +13,7 @@ exports[`reducers paymentReducer should correctly paymentSuccessful 1`] = `
Object {
"payment": null,
"paymentLoading": false,
"payments": Array [
"foo",
],
"payments": Array [],
"sendingPayment": false,
}
`;

Loading…
Cancel
Save