Skip to content

Commit e8d8b3a

Browse files
Merge pull request #84 from bitlogic/SBIT-463
SBIT-463 fixed build bug
2 parents b1bc5e5 + bedbc06 commit e8d8b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Seo/Seo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Seo({ description, lang, meta, title, keywords }) {
2020
let titleTemplateValue = null;
2121

2222
if (defaultTitle) {
23-
if (title.length + defaultTitle.length <= 50) {
23+
if (title?.length + defaultTitle?.length <= 50) {
2424
titleTemplateValue = `%s | ${defaultTitle}`; // Concatenar si la longitud total es corta
2525
} else {
2626
titleTemplateValue = `%s`; // Usar solo el título particular

0 commit comments

Comments
 (0)