From d1d6920a414c631b297f7d3be734d38cc6f395e8 Mon Sep 17 00:00:00 2001 From: EETagent Date: Fri, 2 Dec 2022 15:30:28 +0100 Subject: [PATCH] feat: use const everywhere --- frontend/src/@api/candidate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/@api/candidate.ts b/frontend/src/@api/candidate.ts index 135c1b6..962fe74 100644 --- a/frontend/src/@api/candidate.ts +++ b/frontend/src/@api/candidate.ts @@ -5,7 +5,7 @@ import { API_URL, errorHandler } from "."; export async function apiLogin(data: CandidateLogin): Promise { try { - let res = await axios.post(API_URL + '/candidate/login', data, {withCredentials: true}); + const res = await axios.post(API_URL + '/candidate/login', data, {withCredentials: true}); return data.applicationId; } catch (e: any) { throw errorHandler(e, "Login failed"); @@ -24,7 +24,7 @@ export async function apiLogout() { export async function apiFillDetails(data: CandidateData): Promise { console.log(data); try { - let res = await axios.post(API_URL + '/candidate/details', data, {withCredentials: true}); + const res = await axios.post(API_URL + '/candidate/details', data, {withCredentials: true}); return res.data; } catch (e: any) { throw errorHandler(e, "Failed to fill details"); @@ -33,7 +33,7 @@ export async function apiFillDetails(data: CandidateData): Promise { try { - let res = await axios.get(API_URL + '/candidate/details', {withCredentials: true}); + const res = await axios.get(API_URL + '/candidate/details', {withCredentials: true}); return res.data; } catch (e: any) { throw errorHandler(e, "Failed to fill details");