Skip to content

Commit

Permalink
add optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrenker committed Dec 5, 2023
1 parent a61caf3 commit 8bbd2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/app/cv/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const CVPage: NextPage = async () => {
</p>
<h2 className="!mb-5">Technologies</h2>
<div className="flex flex-wrap items-center justify-evenly gap-2">
{technologies.sort(sortByProficiency).map((technology) => (
{technologies?.sort(sortByProficiency).map((technology) => (
<div
className="flex grow items-center gap-2 rounded border border-zinc-900 px-2 py-1 print:p-1"
key={technology.name}
Expand All @@ -119,7 +119,7 @@ const CVPage: NextPage = async () => {
</section>
<section>
<h2>Projects</h2>
{projects.reverse().map((project) => {
{projects?.reverse().map((project) => {
const overview: SlateNode[] = project.overview?.raw.children ?? [];
const details: SlateNode[] = project.details?.raw.children ?? [];
const startYear = new Date(project.startDate as string).getFullYear();
Expand Down

0 comments on commit 8bbd2be

Please sign in to comment.