Skip to content

Commit 23686cd

Browse files
committed
Defensively handle empty summary
1 parent ec8e23c commit 23686cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netlify/edge-functions/social-image-helpers/project-social-image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function projectSocialImage(
3131

3232
const summary = project.summary;
3333
let summaryFontSize = Sizing.toPx(3);
34-
if (summary.length > MaxLength.at3 * 1.5) {
34+
if (summary && summary.length > MaxLength.at3 * 1.5) {
3535
summaryFontSize = Sizing.toPx(2.5);
3636
}
3737

0 commit comments

Comments
 (0)