|
|
@ -303,16 +303,15 @@ export default class ContactsView extends Vue { |
|
|
|
async loadGives() { |
|
|
|
const handleResponse = ( |
|
|
|
resp, |
|
|
|
allData, |
|
|
|
descriptions, |
|
|
|
confirmed, |
|
|
|
unconfirmed, |
|
|
|
useRecipient, |
|
|
|
) => { |
|
|
|
if (resp.status === 200) { |
|
|
|
const allData = resp.data.data; |
|
|
|
for (const give of allData) { |
|
|
|
const otherDid = useRecipient ? give.recipientDid : give.agentDid; |
|
|
|
console.log("give from", otherDid, "is", give.amount, "HUR"); |
|
|
|
if (give.unit === "HUR") { |
|
|
|
if (give.amountConfirmed) { |
|
|
|
const prevAmount = confirmed[otherDid] || 0; |
|
|
|