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

Commit 0534437

Browse files
committed
Change balance percent label to on Lightning
1 parent 314a224 commit 0534437

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/computed/wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const ComputedWallet = store => {
4242
totalBalanceSatoshis: total,
4343
} = store;
4444
const percent = total ? (opened + pending) / total * 100 : 0;
45-
return `${Math.round(percent)}% in Channels`;
45+
return `${Math.round(percent)}% on Lightning`;
4646
},
4747
get newPasswordCopy() {
4848
const { newPassword } = store.wallet;

test/unit/computed/wallet.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('Computed Wallet Unit Tests', () => {
1818
expect(store.unitLabel, 'to equal', null);
1919
expect(store.newPasswordCopy, 'to equal', '');
2020
expect(store.newPasswordSuccess, 'to equal', null);
21-
expect(store.channelPercentageLabel, 'to equal', '0% in Channels');
21+
expect(store.channelPercentageLabel, 'to equal', '0% on Lightning');
2222
});
2323

2424
it('should generate valid wallet address uri', () => {
@@ -42,7 +42,7 @@ describe('Computed Wallet Unit Tests', () => {
4242
expect(store.totalBalanceLabel, 'to match', /6[,.]895[,.]81/);
4343
expect(store.unitFiatLabel, 'to equal', '$');
4444
expect(store.unitLabel, 'to equal', null);
45-
expect(store.channelPercentageLabel, 'to equal', '50% in Channels');
45+
expect(store.channelPercentageLabel, 'to equal', '50% on Lightning');
4646
});
4747

4848
it('should display channel balance in sat', () => {

0 commit comments

Comments
 (0)