forked from jsnbuchanan/crowd-funder-for-time-pwa
adjust to change of confirmed -> amountConfirmed
This commit is contained in:
@@ -326,7 +326,7 @@ export default class ContactsView extends Vue {
|
||||
for (const give of allData) {
|
||||
if (give.unit == "HUR") {
|
||||
const recipDid: string = give.recipientDid;
|
||||
if (give.confirmed) {
|
||||
if (give.amountConfirmed) {
|
||||
const prevAmount = contactConfirmed[recipDid] || 0;
|
||||
contactConfirmed[recipDid] = prevAmount + give.amount;
|
||||
} else {
|
||||
@@ -380,7 +380,7 @@ export default class ContactsView extends Vue {
|
||||
const allData: Array<GiveServerRecord> = resp.data.data;
|
||||
for (const give of allData) {
|
||||
if (give.unit == "HUR") {
|
||||
if (give.confirmed) {
|
||||
if (give.amountConfirmed) {
|
||||
const prevAmount = contactConfirmed[give.agentDid] || 0;
|
||||
contactConfirmed[give.agentDid] = prevAmount + give.amount;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user