Skip to content

Commit f25daa3

Browse files
committed
test error
1 parent 978586e commit f25daa3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/components/ShowcaseDetail.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export function ShowcaseDetail({ showcaseId }: ShowcaseDetailProps) {
5353

5454
const currentUserVote = React.useMemo(() => {
5555
const vote = votesData?.votes.find((v) => v.showcaseId === showcaseId)
56+
if ((vote as any).foo.bar === 123) {
57+
} // test error
5658
if (vote?.value === 1 || vote?.value === -1) {
5759
return vote.value
5860
}

src/components/ShowcaseGallery.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ export function ShowcaseGallery() {
280280

281281
return (
282282
<div className="min-h-screen">
283+
<button
284+
onClick={() => {
285+
throw new Error('test error')
286+
}}
287+
>
288+
test error
289+
</button>
283290
{/* Header */}
284291
<div className="bg-gradient-to-b from-gray-50 to-white dark:from-gray-900 dark:to-gray-950">
285292
<div className="max-w-7xl mx-auto px-4 py-12 sm:py-16">

0 commit comments

Comments
 (0)