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

Commit d1d62fd

Browse files
authored
Merge pull request #478 from lightninglabs/fiat-default
Fiat default
2 parents 446ce6e + bb5ef38 commit d1d62fd

File tree

12 files changed

+17
-9
lines changed

12 files changed

+17
-9
lines changed

src/computed/wallet.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const ComputedWallet = store => {
2222
const { settings } = store;
2323
return !settings.displayFiat ? UNITS[settings.unit].display : null;
2424
}),
25-
unit: computed(() => UNITS[store.settings.unit].display),
2625
});
2726
};
2827

src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Store {
6868
settings: {
6969
unit: DEFAULT_UNIT,
7070
fiat: DEFAULT_FIAT,
71-
displayFiat: false,
71+
displayFiat: true,
7272
exchangeRate: {},
7373
},
7474
});

test/integration/action/action-integration.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ describe('Action Integration Tests', function() {
9090
sandbox.stub(logger);
9191
store1 = new Store();
9292
store2 = new Store();
93+
store1.settings.displayFiat = false;
94+
store2.settings.displayFiat = false;
9395
store1.init();
9496
store2.init();
9597

test/unit/action/channel.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('Action Channels Unit Tests', () => {
2121
sandbox = sinon.createSandbox({});
2222
sandbox.stub(logger);
2323
store = new Store();
24+
store.settings.displayFiat = false;
2425
require('../../../src/config').RETRY_DELAY = 1;
2526
grpc = sinon.createStubInstance(GrpcAction);
2627
notification = sinon.createStubInstance(NotificationAction);

test/unit/action/invoice.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('Action Invoice Unit Tests', () => {
1616

1717
beforeEach(() => {
1818
store = new Store();
19+
store.settings.displayFiat = false;
1920
require('../../../src/config').RETRY_DELAY = 1;
2021
nav = sinon.createStubInstance(NavAction);
2122
grpc = sinon.createStubInstance(GrpcAction);

test/unit/action/payment.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('Action Payments Unit Tests', () => {
2121
sandbox = sinon.createSandbox({});
2222
sandbox.stub(logger);
2323
store = new Store();
24+
store.settings.displayFiat = false;
2425
require('../../../src/config').RETRY_DELAY = 1;
2526
grpc = sinon.createStubInstance(GrpcAction);
2627
notification = sinon.createStubInstance(NotificationAction);

test/unit/computed/channel.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe('Computed Channels Unit Tests', () => {
66

77
beforeEach(() => {
88
store = new Store();
9+
store.settings.displayFiat = false;
910
store.channels.push({
1011
remotePubkey: 'some-pub-key',
1112
id: '0',

test/unit/computed/invoice.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe('Computed Invoice Unit Tests', () => {
66

77
beforeEach(() => {
88
store = new Store();
9+
store.settings.displayFiat = false;
910
});
1011

1112
describe('ComputedInvoice()', () => {

test/unit/computed/payment.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe('Computed Payment Unit Tests', () => {
66

77
beforeEach(() => {
88
store = new Store();
9+
store.settings.displayFiat = false;
910
});
1011

1112
describe('ComputedPayment()', () => {

test/unit/computed/transaction.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ describe('Computed Transactions Unit Tests', () => {
4242
});
4343

4444
it('should aggregate transactions, payments, and invoices', () => {
45+
store.settings.displayFiat = false;
4546
ComputedTransaction(store);
4647
expect(store.computedTransactions.length, 'to equal', 3);
4748
const tx = store.computedTransactions.find(t => t.id === '0');

0 commit comments

Comments
 (0)