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

Commit 0b68198

Browse files
committed
Port ComputedTransaction to mobx 4
1 parent 921515f commit 0b68198

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/computed/transaction.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* @fileOverview computed values that are used in transaction UI components.
33
*/
44

5-
import { computed, extendObservable } from 'mobx';
5+
import { extendObservable } from 'mobx';
66
import { toAmountLabel, toCaps } from '../helper';
77

88
const ComputedTransaction = store => {
99
extendObservable(store, {
10-
computedTransactions: computed(() => {
10+
get computedTransactions() {
1111
const { transactions, payments, invoices, settings } = store;
1212
const t = transactions ? transactions.slice() : [];
1313
const p = payments ? payments.slice() : [];
@@ -27,7 +27,7 @@ const ComputedTransaction = store => {
2727
}
2828
});
2929
return all.slice(0, 100);
30-
}),
30+
},
3131
});
3232
};
3333

0 commit comments

Comments
 (0)