adjust to change of confirmed -> amountConfirmed

This commit is contained in:
2023-03-27 20:37:22 -06:00
parent fed1ec6397
commit 00182443fd
3 changed files with 14 additions and 11 deletions

View File

@@ -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 {