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

Commit d94c927

Browse files
committed
Remove redundant showChannelAlert
1 parent f3befd8 commit d94c927

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/computed/channel.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ const ComputedChannel = store => {
7575
const { channelBalanceClosingSatoshis, settings } = store;
7676
return toAmountLabel(channelBalanceClosingSatoshis, settings);
7777
},
78-
get showChannelAlert() {
79-
return (store.channels || []).length === 0;
80-
},
8178
get channelStatus() {
8279
const {
8380
channelBalanceOpenSatoshis: opened,

test/unit/computed/channel.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ describe('Computed Channels Unit Tests', () => {
5757
expect(store.channelBalanceInactiveLabel, 'to equal', '0');
5858
expect(store.channelBalancePendingLabel, 'to equal', '0');
5959
expect(store.channelBalanceClosingLabel, 'to equal', '0');
60-
expect(store.showChannelAlert, 'to equal', true);
6160
expect(store.channelStatus, 'to equal', 'error');
6261
});
6362

@@ -88,7 +87,6 @@ describe('Computed Channels Unit Tests', () => {
8887
expect(store.channelBalanceInactiveLabel, 'to match', /0[,.]0199/);
8988
expect(store.channelBalancePendingLabel, 'to match', /0[,.]006/);
9089
expect(store.channelBalanceClosingLabel, 'to match', /0[,.]005/);
91-
expect(store.showChannelAlert, 'to equal', false);
9290
expect(store.channelStatus, 'to equal', 'success');
9391
});
9492

0 commit comments

Comments
 (0)