From f0b41d84c81fa8b7faac03c6e30765898e128719 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Tue, 5 Sep 2017 13:09:42 -0500 Subject: [PATCH] fix(closechannel): close modal when closing a channel --- .../Channels/components/ChannelModal/ChannelModal.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/routes/wallet/components/components/Channels/components/ChannelModal/ChannelModal.js b/app/routes/wallet/components/components/Channels/components/ChannelModal/ChannelModal.js index a90067fc..f0cf8ae4 100644 --- a/app/routes/wallet/components/components/Channels/components/ChannelModal/ChannelModal.js +++ b/app/routes/wallet/components/components/Channels/components/ChannelModal/ChannelModal.js @@ -21,6 +21,11 @@ const ChannelModal = ({ isOpen, resetChannel, channel, explorerLinkBase, closeCh } } + const closeChannelClicked = () => { + closeChannel({ channel_point: channel.channel_point }) + resetChannel(null) + } + return ( {channel.num_updates} -
closeChannel({ channel_point: channel.channel_point })}> +
Close channel