From 699499f5758b806a2de1128b4673f40f7203b1df Mon Sep 17 00:00:00 2001 From: Shinsina Date: Fri, 1 Mar 2024 16:28:50 -0600 Subject: [PATCH] Utilize ternary for seoTitle --- src/lib/layouts/default.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/layouts/default.astro b/src/lib/layouts/default.astro index ea29044..125ce0c 100644 --- a/src/lib/layouts/default.astro +++ b/src/lib/layouts/default.astro @@ -1,6 +1,6 @@ --- const { title, description } = Astro.props; -const seoTitle = `Stat 'n' Track: ${title}` || "Stat 'n' Track"; +const seoTitle = title ? `Stat 'n' Track: ${title}` : "Stat 'n' Track"; const seoDescription = description || "An iRacing planner and statistics analyzer"; ---