From bbe9fef27b4df66ea2c4bb59e20ada37ea07a0cc Mon Sep 17 00:00:00 2001 From: Justin Hynes Date: Tue, 30 Jun 2020 15:50:30 -0400 Subject: [PATCH] ugh, quality --- .../demographics/data/service.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/account-settings/demographics/data/service.js b/src/account-settings/demographics/data/service.js index 32a30f9..c2f1dd4 100644 --- a/src/account-settings/demographics/data/service.js +++ b/src/account-settings/demographics/data/service.js @@ -51,7 +51,7 @@ export async function getDemographics(userId) { ({ data } = await getAuthenticatedHttpClient() .get(requestUrl)); - data = convertData(data, FROM); + data = convertData(data, FROM); } catch (error) { const apiError = Object.create(error); // if the API called resulted in this user receiving a 404 then follow up with a POST call to @@ -63,22 +63,22 @@ export async function getDemographics(userId) { } else { data = { user: userId, - demographics_gender: "", - demographics_gender_description: "", - demographics_income: "", - demographics_learner_education_level: "", - demographics_parent_education_level: "", - demographics_military_history: "", - demographics_work_status: "", - demographics_work_status_description: "", - demographics_current_work_sector: "", - demographics_future_work_sector: "", + demographics_gender: '', + demographics_gender_description: '', + demographics_income: '', + demographics_learner_education_level: '', + demographics_parent_education_level: '', + demographics_military_history: '', + demographics_work_status: '', + demographics_work_status_description: '', + demographics_current_work_sector: '', + demographics_future_work_sector: '', demographics_user_ethnicity: [], }; } } - return data + return data; } /**