Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submission page optimization #796

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
23 changes: 12 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@
"react-identicons": "^1.2.5",
"react-image-file-resizer": "^0.4.8",
"react-indexed-db-hook": "^1.0.14",
"react-intersection-observer": "^9.15.1",
"sanitize-markdown": "^2.6.7",
"siwe": "^1.1.6",
"uuid-by-string": "^4.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export async function optInToAuditCompetition(editSessionIdOrAddress: string): P
});
return response.data.ok;
} catch (error) {
console.log(error);
console.error("Error opting in to audit competition:", error);
// Don't throw, just return false to indicate failure
return false;
}
}
Expand All @@ -26,7 +27,8 @@ export async function optOutToAuditCompetition(editSessionIdOrAddress: string):
});
return response.data.ok;
} catch (error) {
console.log(error);
console.error("Error opting out from audit competition:", error);
// Don't throw, just return false to indicate failure
return false;
}
}
Expand All @@ -41,7 +43,8 @@ export async function getAllOptedInOnAuditCompetition(editSessionIdOrAddress?: s
const response = await axiosClient.get(`${BASE_SERVICE_URL}/edit-session/${editSessionIdOrAddress}/list-opted-in-users`);
return response.data.optedInUsers;
} catch (error) {
console.log(error);
console.error("Error getting opted in users:", error);
// Don't throw, just return empty array to indicate no users
return [];
}
}
Loading
Loading