File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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" >
You can’t perform that action at this time.
0 commit comments