@@ -8,9 +8,8 @@ export default function processContributionData(data) {
|
||||
}
|
||||
|
||||
const otherProperties = [
|
||||
'id', 'contributorId', 'amount', 'vetoed',
|
||||
'ipfsHash', 'kind', 'description', 'details',
|
||||
'url', 'date', 'time', 'pendingTx'
|
||||
'id', 'contributorId', 'amount', 'vetoed', 'ipfsHash', 'kind',
|
||||
'description', 'details', 'url', 'date', 'time', 'pendingTx'
|
||||
];
|
||||
|
||||
otherProperties.forEach(prop => {
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
export default function processContributorData(data) {
|
||||
const processed = {
|
||||
id: data.id.toString(),
|
||||
balance: data.balanceInt,
|
||||
totalKreditsEarned: data.totalKreditsEarned,
|
||||
contributionsCount: data.contributionsCount?.toNumber()
|
||||
}
|
||||
|
||||
const otherProperties = [
|
||||
'account', 'accounts', 'ipfsHash', 'isCore', 'kind', 'name', 'url',
|
||||
'id', 'account', 'accounts', 'ipfsHash', 'isCore', 'kind', 'name', 'url',
|
||||
'github_username', 'github_uid', 'wiki_username', 'zoom_display_name'
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user