From 82c1eefb13765cbb55377bb41e842d43ab225526 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 21 Jan 2021 16:39:43 -0800 Subject: [PATCH] Add a no results message to the item search page --- src/app/ItemSearchPage.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app/ItemSearchPage.js b/src/app/ItemSearchPage.js index 6025ea29..cba58347 100644 --- a/src/app/ItemSearchPage.js +++ b/src/app/ItemSearchPage.js @@ -170,6 +170,18 @@ function ItemSearchPageResults({ query: latestQuery }) { ); } + if (data.itemSearch.items.length === 0) { + return ( + + We couldn't find any matching items{" "} + + 🤔 + {" "} + Try again? + + ); + } + return (