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:
parent
6ae22d171b
commit
d386ccfad8
1 changed files with 5 additions and 1 deletions
|
@ -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"}
|
||||
|
|
Loading…
Reference in a new issue