l2-fees icon indicating copy to clipboard operation
l2-fees copied to clipboard

Fix NaN total L1 fees

Open hesom opened this issue 3 years ago • 1 comments

I'm getting NaN value in the "Total" row in L1 Security Costs tab. The main reason is the NaN value inside the result of the data prop of L1List. I fixed this by simply adding 0 to the total if the result is invalid.

I think the reason for the NaN is an error in the API call that is supposed to get the DeversiFi fees. This causes the results of the children of StarkNet in the bundleItems function to not be added correctly. I fixed this similarly by just adding 0 if the current result is invalid.

firefox_Z2cGFQYFIu firefox_6GUFhJZ5K0

hesom avatar Feb 17 '22 17:02 hesom

@hesom is attempting to deploy a commit to the ETH Burned Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 17 '22 17:02 vercel[bot]