Skip to content

Commit

Permalink
patch for i = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Nov 1, 2023
1 parent 02a96e7 commit b0fc5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/chainCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function filterRawAmounts(

const data = Object.values(chainData);
for (let i = 0; i < data.length; i++) {
if (!('result' in data[i])) data[i].result = data[i - 1].result
if (!('result' in data[i])) data[i].result = i > 0 ? data[i - 1].result : 0
const thisBalance = data[i].result;
if (depositIndex == 0 && thisBalance == 0) continue;

Expand Down

0 comments on commit b0fc5fe

Please sign in to comment.