Update index.html
Fixing type-error part 2
This commit is contained in:
parent
9380cccf3f
commit
45d07886fb
@ -4202,10 +4202,15 @@
|
|||||||
.readAllTxs("FThgnJLcuStugLc24FJQggmp2WgaZjrBSn")
|
.readAllTxs("FThgnJLcuStugLc24FJQggmp2WgaZjrBSn")
|
||||||
.then(({ items }) => {
|
.then(({ items }) => {
|
||||||
items.forEach((tx) => {
|
items.forEach((tx) => {
|
||||||
// Ensure tx.vout exists and has the expected structure
|
// Errorfix 1 - Ensure tx.vout exists and has the expected structure
|
||||||
if (!tx.vout || !tx.vout[0] || !tx.vout[0].scriptPubKey || !tx.vout[0].scriptPubKey.addresses) return;
|
if (!tx.vout || !tx.vout[0] || !tx.vout[0].scriptPubKey || !tx.vout[0].scriptPubKey.addresses) return;
|
||||||
|
|
||||||
const floId = tx.vout[0].scriptPubKey.addresses[0];
|
const floId = tx.vout[0].scriptPubKey.addresses[0];
|
||||||
|
|
||||||
|
//Errorfix 2 - Making sure FLO ID is in the intern list
|
||||||
|
const internList = RIBC.getInternList();
|
||||||
|
if (!(floId in internList)) return; // check if floId is of an intern
|
||||||
|
|
||||||
if (!RIBC.getInternList()[floId]) return; // check if floId is of an intern
|
if (!RIBC.getInternList()[floId]) return; // check if floId is of an intern
|
||||||
const { txid, floData, time } = tx
|
const { txid, floData, time } = tx
|
||||||
if (!floGlobals.payments[floId])
|
if (!floGlobals.payments[floId])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user