From 6df1972232b1ab5f046ca7e3d5da272651272b03 Mon Sep 17 00:00:00 2001 From: Nick Oates Date: Sat, 16 Nov 2024 19:55:35 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Code=20format=20tweaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/actions.ts | 4 +--- app/lib/mergeMetadata.ts | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/lib/actions.ts b/app/lib/actions.ts index 9c0d173..3d7e62a 100644 --- a/app/lib/actions.ts +++ b/app/lib/actions.ts @@ -32,9 +32,7 @@ export async function subscribe( Authorization: `Bearer ${RESEND_API_KEY}`, "Content-Type": "application/json", }, - body: JSON.stringify({ - email, - }), + body: JSON.stringify({ email }), }, ); diff --git a/app/lib/mergeMetadata.ts b/app/lib/mergeMetadata.ts index b02dab8..a320802 100644 --- a/app/lib/mergeMetadata.ts +++ b/app/lib/mergeMetadata.ts @@ -10,8 +10,8 @@ export default function mergeMetadata({ description?: string; image?: string; imageAlt?: string; -} = {}) { - const metadata: Metadata = { +} = {}): Metadata { + return { title: title ? `${title} • Nick Oates` : "Nick Oates", openGraph: { siteName: "Nick Oates", @@ -36,6 +36,4 @@ export default function mergeMetadata({ }, }, }; - - return metadata; }