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!
This commit is contained in:
Emi Matchu 2021-06-17 21:31:04 -07:00
parent 6ae22d171b
commit d386ccfad8

View file

@ -118,7 +118,11 @@ function ItemPageDescription({ description, isEmbedded }) {
return (
<Box width="100%" alignSelf="flex-start">
{description || (
{description ? (
description
) : description === "" ? (
<i>(This item has no description.)</i>
) : (
<Box
maxWidth="40em"
minHeight={numDescriptionLines * 1.5 + "em"}