From 211949c64801d521c94e836c720719a60ea344b6 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Wed, 7 Jan 2015 00:14:22 +0000 Subject: [PATCH] Handle bad recent matches --- public/stylesheets/style.css | 2 +- views/home.jsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 9af324c..7d19e4f 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -138,7 +138,7 @@ h3 { margin-bottom: 10px; } .not-found { - opacity: 0.5; + opacity: 0.3; } .loading { position: absolute; diff --git a/views/home.jsx b/views/home.jsx index 15415b4..efb7920 100644 --- a/views/home.jsx +++ b/views/home.jsx @@ -26,6 +26,9 @@ var Recent = React.createClass({ var RecentItem = React.createClass({ render: function() { + if (!this.props.item.artwork) { + return false; + } return (