Skip to content

Commit 5c271bd

Browse files
committed
Format: Prettier (frontend) and Ruff (backend); remove unused var
1 parent 0b826c6 commit 5c271bd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

backend/app/routes/intake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async def create_form_submission(
168168

169169
# Process the form data into structured tables
170170
processor = IntakeFormProcessor(db)
171-
user_data = processor.process_form_submission(user_id=str(current_user.id), form_data=submission.answers)
171+
processor.process_form_submission(user_id=str(current_user.id), form_data=submission.answers)
172172

173173
# Commit everything together
174174
db.commit()

frontend/src/APIClients/baseAPIClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ baseAPIClient.interceptors.request.use(async (config: InternalAxiosRequestConfig
3636
newConfig.headers.Authorization = `Bearer ${idToken}`;
3737
}
3838
}
39-
} catch {
40-
}
39+
} catch {}
4140

4241
// if access token in header has expired, do a refresh
4342
const authHeaderParts = config.headers.Authorization?.toString().split(' ');

frontend/src/pages/volunteer/intake.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ export default function VolunteerIntakePage() {
103103
await baseAPIClient.post('/intake/submissions', { answers: updated });
104104
} catch (error: any) {
105105
// eslint-disable-next-line no-console
106-
console.error('[INTAKE][SUBMIT][ERROR] Volunteer submission failed', error?.response?.data || error);
106+
console.error(
107+
'[INTAKE][SUBMIT][ERROR] Volunteer submission failed',
108+
error?.response?.data || error,
109+
);
107110
return; // Do not advance on failure
108111
} finally {
109112
setSubmitting(false);

0 commit comments

Comments
 (0)