From b12cbc7a65082dcf4ceed89b44d28083f15b67bc Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Thu, 5 May 2022 18:47:05 +0530 Subject: [PATCH] 1.0.0 Clean html base with no errors --- index.html | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index b817ac7..11c9173 100644 --- a/index.html +++ b/index.html @@ -676,9 +676,9 @@ // Token split Info let [floid_balances, floid_transactions] = find_balances_txs_floid(myFloID); - update_element("total-consumertoken-balance", floid_balances["consumer_amt"]); + //update_element("total-consumertoken-balance", floid_balances["consumer_amt"]); - render_user_transactions(floid_transactions); + //render_user_transactions(floid_transactions); } function load_overview_data() { @@ -986,8 +986,6 @@ function find_balances_txs_floid(floID) { let floid_balances = { consumer_amt: 0, - property_amt: 0, - investor_amt: 0, referrer_amt: 0 }; @@ -1001,18 +999,6 @@ floid_transactions[d] = floGlobals.generalData[fk][d].message } - if (floGlobals.generalData[fk][d].message.property_floid == floID) { - floid_balances["property_amt"] += - floGlobals.generalData[fk][d].message.producer_split; - floid_transactions[d] = floGlobals.generalData[fk][d].message - } - - if (floGlobals.generalData[fk][d].message.investor_floid == floID) { - floid_balances["investor_amt"] += - floGlobals.generalData[fk][d].message.investor_split; - floid_transactions[d] = floGlobals.generalData[fk][d].message - } - if (floGlobals.generalData[fk][d].message.referrer_floid == floID) { floid_balances["referrer_amt"] += floGlobals.generalData[fk][d].message.referrer_split; @@ -1194,6 +1180,15 @@ //App functions.... + fetch('https://miningapitest.duckdns.org/getUsers') + .then(response => response.json()) + .then(data => { + // Check if all the user data is present in the cloud object + console.log('user data') + console.log(data) + }) + .catch(error => console.error('Error:', error)) + }).catch((error) => console.error(error)); }