diff --git a/app/dashboard/views.py b/app/dashboard/views.py index 0d6e1366b6d..ce7d3378145 100644 --- a/app/dashboard/views.py +++ b/app/dashboard/views.py @@ -869,6 +869,12 @@ def previous_worked(): 'show_job_status', 'job_location', 'job_salary', 'job_search_status', 'job_type', 'linkedin_url', 'resume', 'remote', 'keywords', 'organizations', 'is_org']} + + if user.show_job_status is False: + del profile_json['job_salary'] + del profile_json['job_location'] + del profile_json['job_type'] + profile_json['job_status'] = user.job_status_verbose if user.job_search_status else None profile_json['previously_worked'] = user.previous_worked_count > 0 profile_json['position_contributor'] = user.get_contributor_leaderboard_index()