forked from jsnbuchanan/crowd-funder-for-time-pwa
walk back edits that were forward-looking but broken
This commit is contained in:
@@ -303,16 +303,15 @@ export default class ContactsView extends Vue {
|
|||||||
async loadGives() {
|
async loadGives() {
|
||||||
const handleResponse = (
|
const handleResponse = (
|
||||||
resp,
|
resp,
|
||||||
allData,
|
|
||||||
descriptions,
|
descriptions,
|
||||||
confirmed,
|
confirmed,
|
||||||
unconfirmed,
|
unconfirmed,
|
||||||
useRecipient,
|
useRecipient,
|
||||||
) => {
|
) => {
|
||||||
if (resp.status === 200) {
|
if (resp.status === 200) {
|
||||||
|
const allData = resp.data.data;
|
||||||
for (const give of allData) {
|
for (const give of allData) {
|
||||||
const otherDid = useRecipient ? give.recipientDid : give.agentDid;
|
const otherDid = useRecipient ? give.recipientDid : give.agentDid;
|
||||||
console.log("give from", otherDid, "is", give.amount, "HUR");
|
|
||||||
if (give.unit === "HUR") {
|
if (give.unit === "HUR") {
|
||||||
if (give.amountConfirmed) {
|
if (give.amountConfirmed) {
|
||||||
const prevAmount = confirmed[otherDid] || 0;
|
const prevAmount = confirmed[otherDid] || 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user