Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CaliCastle authored Jul 18, 2024
2 parents f100037 + d6583b3 commit fef038d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default async function BlogHomePage() {
<Headline />
</Container>

{settings.heroPhotos && <Photos photos={settings.heroPhotos} />}
{settings?.heroPhotos && <Photos photos={settings.heroPhotos} />}

<Container className="mt-24 md:mt-28">
<div className="mx-auto grid max-w-xl grid-cols-1 gap-y-20 lg:max-w-none lg:grid-cols-2">
Expand All @@ -31,7 +31,7 @@ export default async function BlogHomePage() {
</div>
<aside className="space-y-10 lg:sticky lg:top-8 lg:h-fit lg:pl-16 xl:pl-20">
<Newsletter />
{settings.resume && <Resume resume={settings.resume} />}
{settings?.resume && <Resume resume={settings.resume} />}
</aside>
</div>
</Container>
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/projects/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ProjectCard } from '~/app/(main)/projects/ProjectCard'
import { getSettings } from '~/sanity/queries'

export async function Projects() {
const projects = (await getSettings()).projects || []
const projects = (await getSettings())?.projects || []

return (
<ul
Expand Down

0 comments on commit fef038d

Please sign in to comment.