Cleanup promise call
This commit is contained in:
parent
375d8f3275
commit
791190f5e7
@ -10,11 +10,9 @@ class Contributor extends Record {
|
||||
getById(id) {
|
||||
return this.functions.getContributorById(id)
|
||||
.then(data => {
|
||||
return this.ipfs.catAndMerge(data, ContributorSerializer.deserialize);
|
||||
}).then(data => {
|
||||
data.balanceInt = formatKredits(data.balance);
|
||||
return data;
|
||||
});
|
||||
return this.ipfs.catAndMerge(data, ContributorSerializer.deserialize);
|
||||
})
|
||||
}
|
||||
|
||||
filterByAccount(search) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user