l2-fees
l2-fees copied to clipboard
Fix NaN total L1 fees
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.
@hesom is attempting to deploy a commit to the ETH Burned Team on Vercel.
A member of the Team first needs to authorize it.