From e4e87fd1a114b25eeaa0481669c6a4cbbeb4cac3 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Sun, 11 Oct 2015 20:25:09 -0700 Subject: [PATCH] Show N/A when field is empty --- common/app/routes/Jobs/components/ShowJob.jsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/common/app/routes/Jobs/components/ShowJob.jsx b/common/app/routes/Jobs/components/ShowJob.jsx index 1a048a3fff..80b0242a2e 100644 --- a/common/app/routes/Jobs/components/ShowJob.jsx +++ b/common/app/routes/Jobs/components/ShowJob.jsx @@ -2,6 +2,10 @@ import React, { PropTypes } from 'react'; import { Row, Thumbnail, Panel, Well } from 'react-bootstrap'; import moment from 'moment'; +const defaultImage = + 'https://pbs.twimg.com/' + + 'profile_images/562385977390272512/AK29YaTf_400x400.png'; + const thumbnailStyle = { backgroundColor: 'white', maxHeight: '100px', @@ -47,12 +51,13 @@ export default React.createClass({ - Position: { position } - Location: { city }, { state } + Position: { position || 'N/A' } +
+ Location: { city || '' }, { state || 'N/A' }
Contact: { email || phone || 'N/A' }