add basic error handling on subgraph queries
Some checks failed
CI script / lint (push) Has been cancelled
CI script / build (push) Has been cancelled
CI script / SonarCloud (push) Has been cancelled
Deploy FrontEnd / deploy-staging (push) Has been cancelled
Deploy FrontEnd / deploy-production (push) Has been cancelled

This commit is contained in:
hueso 2025-10-24 20:34:08 -03:00
parent ed9fa61365
commit a1d56bfdd0

View File

@ -94,6 +94,10 @@ const getValidDeposits = async (
// remove doubles from sellers list
const depositData = await depositLogs.json();
if (!depositData.data) {
console.error("Error fetching deposit logs");
return [];
}
const depositAddeds = depositData.data.depositAddeds;
const uniqueSellers = depositAddeds.reduce(
(acc: Record<Address, boolean>, deposit: any) => {