From ba00f12aecd80af418ac075165b070b821750b30 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Fri, 1 Dec 2017 18:57:56 -0600 Subject: [PATCH] fix(channelform): reset channel form when successful --- app/reducers/channels.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/reducers/channels.js b/app/reducers/channels.js index 58499e6e..0a919805 100644 --- a/app/reducers/channels.js +++ b/app/reducers/channels.js @@ -3,7 +3,7 @@ import { ipcRenderer } from 'electron' import { btc } from 'utils' import { showNotification } from 'notifications' import { fetchDescribeNetwork } from './network' -import { closeChannelForm } from './channelform' +import { closeChannelForm, resetChannelForm } from './channelform' import { setError } from './error' // ------------------------------------ // Constants @@ -116,6 +116,7 @@ export const channelSuccessful = () => (dispatch) => { console.log('CHANNEL channelSuccessful') dispatch(fetchChannels()) dispatch(closeChannelForm()) + dispatch(resetChannelForm()) } // Receive IPC event for updated channel