From 73c66d5d1878cd702f433d8422d187974087aef7 Mon Sep 17 00:00:00 2001 From: Matt Tuchfarber Date: Mon, 27 Apr 2020 16:43:58 -0400 Subject: [PATCH] Default eligble for coaching to false A user without coaching data should no longer see the toggle --- src/account-settings/coaching/data/service.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/account-settings/coaching/data/service.js b/src/account-settings/coaching/data/service.js index 4a94c1a..3b6ce16 100644 --- a/src/account-settings/coaching/data/service.js +++ b/src/account-settings/coaching/data/service.js @@ -13,12 +13,11 @@ export async function getCoachingPreferences(userId) { .get(`${getConfig().LMS_BASE_URL}/api/coaching/v1/users/${userId}/`)); } catch (error) { // Default values so the client doesn't fail if the user doesn't have an entry in the - // UserCoaching model yet, with the assumption that they'll be eligible for coaching - // when they hit this form. + // UserCoaching model yet. data = { coaching_consent: false, user: userId, - eligible_for_coaching: true, + eligible_for_coaching: false, consent_form_seen: false, }; }