From 74095e397bde81fc17b6f96320809d37f13d95d5 Mon Sep 17 00:00:00 2001 From: "flamingo[bot]" <277372822+flamingo[bot]@users.noreply.github.com> Date: Fri, 14 Aug 2026 14:24:05 +0000 Subject: [PATCH] fix(MAJORLEA-005-2): frontend/src/services/hiring.ts silently swallows errors and returns empty array instead of throwing --- frontend/src/services/hiring.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/frontend/src/services/hiring.ts b/frontend/src/services/hiring.ts index f53638b..917af96 100644 --- a/frontend/src/services/hiring.ts +++ b/frontend/src/services/hiring.ts @@ -2,12 +2,6 @@ import { JobOpening } from '../types/hiring'; import { getJobOpenings } from './api'; export const fetchJobOpenings = async (): Promise => { - try { - // Use the API service to fetch job openings from the backend - return await getJobOpenings(); - } catch (error) { - console.error('Error fetching job openings:', error); - // Return empty array in case of error - return []; - } -}; \ No newline at end of file + // Use the API service to fetch job openings from the backend + return await getJobOpenings(); +};