From d386ccfad8684ff3f551074eadab672f4644c97e Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 17 Jun 2021 21:31:04 -0700 Subject: [PATCH] Show placeholder when item description is blank I'm not sure real item data "should" ever do this? Our "Written Word Shower" had a blank description, but I think that was an error on our end. Anyway, it's clearer than showing infinite loading, so! --- src/app/ItemPage.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/ItemPage.js b/src/app/ItemPage.js index f4bf645..0cb0006 100644 --- a/src/app/ItemPage.js +++ b/src/app/ItemPage.js @@ -118,7 +118,11 @@ function ItemPageDescription({ description, isEmbedded }) { return ( - {description || ( + {description ? ( + description + ) : description === "" ? ( + (This item has no description.) + ) : (