diff --git a/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx b/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx index 974ddb28ef..e6cac81168 100644 --- a/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx +++ b/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx @@ -131,13 +131,14 @@ function LoggedInUser({

{StringUtils.interpolate( - gettext('What can we help you with, {username}?'), - { username: userInformation.username }, + gettext('What can we help you with, {fullName}?'), + { fullName: userInformation.fullName }, )}

@@ -176,6 +177,7 @@ LoggedInUser.propTypes = { reDirectUser: PropTypes.func.isRequired, userInformation: PropTypes.shape({ course_id: PropTypes.string, + fullName: PropTypes.string, username: PropTypes.string, email: PropTypes.string, // eslint-disable-next-line react/forbid-prop-types diff --git a/lms/templates/support/contact_us.html b/lms/templates/support/contact_us.html index 4a93d60238..05cbe4f9f5 100644 --- a/lms/templates/support/contact_us.html +++ b/lms/templates/support/contact_us.html @@ -41,6 +41,7 @@ from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_j % if user.is_authenticated: context['user'] = { + 'fullName': "${user.profile.name | n, js_escaped_string}", 'username': "${user.username | n, js_escaped_string}", 'email': "${user.email | n, js_escaped_string}", 'course_id': "${course_id | n, js_escaped_string}"