From 18d13b67e1203ab24a6533d354fa7d8ac39e9f85 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Fri, 25 Apr 2014 13:51:10 -0400 Subject: [PATCH] LinkedIn API: Display education only if user listed that on their linkedin profile. Fixes #138 --- views/api/linkedin.jade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/views/api/linkedin.jade b/views/api/linkedin.jade index f7d79906a4..52932cc6cf 100644 --- a/views/api/linkedin.jade +++ b/views/api/linkedin.jade @@ -46,9 +46,10 @@ block content | #{company.title} | at | #{company.company.name} - dt.text-muted Education - for education in profile.educations.values - dd= education.schoolName + if profile.educations + dt.text-muted Education + for education in profile.educations.values + dd= education.schoolName dt.text-muted Recommendations dd strong #{profile.numRecommenders}