Skip to content

Commit ebb4c29

Browse files
committed
Better errors for gig details page
1 parent c92598a commit ebb4c29

File tree

1 file changed

+3
-1
lines changed
  • src/shared/components/Gigs/GigDetails

1 file changed

+3
-1
lines changed

src/shared/components/Gigs/GigDetails/index.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import iconSkills from 'assets/images/icon-skills-blue.png';
2222
import iconLabel1 from 'assets/images/l1.png';
2323
import iconLabel2 from 'assets/images/l2.png';
2424
import iconLabel3 from 'assets/images/l3.png';
25+
import SadFace from 'assets/images/sad-face-icon.svg';
2526

2627
// Cleanup HTML from style tags
2728
// so it won't affect other parts of the UI
@@ -48,7 +49,8 @@ export default function GigDetails(props) {
4849
{
4950
job.error || job.enable_job_application_form !== 1 ? (
5051
<div styleName="error">
51-
<h3>Gig does not exist.</h3>
52+
{ job.error ? <SadFace /> : null }
53+
<h3>{ job.error ? 'Gig does not exist' : 'This Gig has been Fulfilled'}</h3>
5254
<div styleName="cta-buttons">
5355
<Link to={config.GIGS_PAGES_PATH}>VIEW OTHER GIGS</Link>
5456
</div>

0 commit comments

Comments
 (0)