Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit c7c4d17

Browse files
committed
Don't Show Close on Pending Channels
1 parent bd617e4 commit c7c4d17

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/lightning-core/accounts/ChannelListItem.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ export const ChannelListItem = ({ id, capacity, localBalance, remoteBalance,
118118
<div style={ styles.split }>
119119
<div style={ styles.id }>
120120
CID: { id }
121-
<div style={ styles.closeLabel } onClick={ showPopupOrClose }>
122-
<Icon small name="close" />
123-
</div>
121+
{ status !== 'pending' && (
122+
<div style={ styles.closeLabel } onClick={ showPopupOrClose }>
123+
<Icon small name="close" />
124+
</div>
125+
) }
124126
</div>
125127
<div style={ styles.status }>
126128
{ active ? (

0 commit comments

Comments
 (0)