WIP Basic reimbursement lists

This commit is contained in:
2020-07-09 15:14:09 +02:00
parent 95743330e4
commit eaac245f4e
11 changed files with 212 additions and 110 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
export default function processReimbursementData(data) {
const processed = {}
const processed = {
amount: data.amount.toNumber()
}
if (data.confirmedAtBlock && (typeof data.confirmedAtBlock.toNumber === 'function')) {
processed.confirmedAt = data.confirmedAtBlock.toNumber();
@@ -8,7 +10,7 @@ export default function processReimbursementData(data) {
}
const otherProperties = [
'id', 'contributorId', 'token', 'amount', 'vetoed', 'ipfsHash',
'id', 'contributorId', 'token', 'vetoed', 'ipfsHash',
'expenses', 'pendingTx'
];