parse int

This commit is contained in:
2025-04-03 20:39:02 -07:00
parent 0955fbd88e
commit 1e880cb95c

@ -71,7 +71,7 @@ export default function ReviewButtons(props: ReviewId) {
try { try {
// Fetch user roles // Fetch user roles
const rolesResponse = await fetch("/api/session/roles"); const rolesResponse = await fetch("/api/session/roles");
const rolesData = await rolesResponse.json(); const rolesData = parseInt(await rolesResponse.text());
// Fetch submission status // Fetch submission status
const statusResponse = await fetch( const statusResponse = await fetch(