Skip to content

Commit

Permalink
Do not print a zero (0) when there are no CTA elements (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Mar 23, 2020
1 parent ec335fa commit 30921a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/edit-story/output/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function OutputPage({ page }) {
))}
</div>
</amp-story-grid-layer>
{ctaElements.length && (
{ctaElements.length ? (
<amp-story-cta-layer>
<div
className="page-cta-area"
Expand All @@ -105,7 +105,7 @@ function OutputPage({ page }) {
))}
</div>
</amp-story-cta-layer>
)}
) : null}
</amp-story-page>
);
}
Expand Down

0 comments on commit 30921a4

Please sign in to comment.