diff --git a/app/main.dev.js b/app/main.dev.js index c1560a05..a37ee0eb 100644 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -169,7 +169,7 @@ export const startLnd = () => { '--bitcoin.active', '--bitcoin.testnet', '--neutrino.active', - '--neutrino.connect=btcd0.lightning.computer:18333', + '--neutrino.connect=btcd.jackmallers.com:18333', '--autopilot.active', '--debuglevel=debug', '--noencryptwallet' diff --git a/app/reducers/invoice.js b/app/reducers/invoice.js index 84ee9356..43932ccf 100644 --- a/app/reducers/invoice.js +++ b/app/reducers/invoice.js @@ -1,6 +1,8 @@ import { createSelector } from 'reselect' import { ipcRenderer } from 'electron' +import { push } from 'react-router-redux' +import { showActivityModal } from './activity' import { fetchBalance } from './balance' import { setFormType } from './form' import { setPayInvoice } from './payform' @@ -110,6 +112,12 @@ export const createdInvoice = (event, invoice) => (dispatch) => { // Reset the payment form dispatch(resetRequestForm()) + + // Transition to wallet route + dispatch(push('/')) + + // Set invoice modal to newly created invoice + dispatch(showActivityModal('INVOICE', { invoice })) } export const invoiceFailed = (event, { error }) => (dispatch) => {