Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Aug 8, 2024
1 parent 5a89ef4 commit 05dad48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/share/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export default async function Page({ params }: { params: { id: string } }) {
},
});

return <CodeViewer code={generatedApp?.code} />;
if (!generatedApp) {
return <div>App not found</div>;
}

return <CodeViewer code={generatedApp.code} />;
}

let sampleCode = `
Expand Down

0 comments on commit 05dad48

Please sign in to comment.