File tree Expand file tree Collapse file tree
frontend/src/routes/_auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function HomePage() {
2929 client,
3030 query : { event_date : eventDate }
3131 } )
32- if ( response . error ) throw new Error ( 'Failed to fetch payments ' )
32+ if ( response . error ) throw new Error ( 'Failed to fetch events ' )
3333 if ( ! response . data ) throw new Error ( 'No data returned' )
3434 return response . data
3535 }
@@ -38,7 +38,7 @@ function HomePage() {
3838 useEffect ( ( ) => {
3939 if ( ! isError ) return
4040 console . error ( error )
41- toast . error ( 'Failed to fetch payments ' , {
41+ toast . error ( 'Failed to fetch events ' , {
4242 description :
4343 error instanceof Error ? error . message : 'An unknown error occurred'
4444 } )
@@ -57,7 +57,7 @@ function HomePage() {
5757
5858 < ScrollArea className = "h-full w-full rounded-md" >
5959 < hgroup className = "p-4 pb-0" >
60- < h1 className = "text-lg font-semibold" > Payments </ h1 >
60+ < h1 className = "text-lg font-semibold" > Events </ h1 >
6161 < h2 className = "text-neutral-500" > { date ?. toLocaleDateString ( ) } </ h2 >
6262 </ hgroup >
6363 < div className = "px-4" >
@@ -69,7 +69,7 @@ function HomePage() {
6969 ) }
7070 { events ?. length === 0 && (
7171 < p className = "text-center text-sm leading-10 text-neutral-500" >
72- No payments
72+ No events
7373 </ p >
7474 ) }
7575 { events ?. map ( ( event ) => {
You can’t perform that action at this time.
0 commit comments