@@ -37,9 +37,10 @@ export default function SubscribeSuccessPage() {
3737 if ( ! cancelled ) {
3838 setState ( { status : 'success' , agentHandle : data . agentHandle || null , isPremium : ! ! data . isPremium } ) ;
3939 }
40- } catch ( err : any ) {
40+ } catch ( err : unknown ) {
4141 if ( ! cancelled ) {
42- setState ( { status : 'error' , message : err ?. message || 'Activation failed' } ) ;
42+ const message = err instanceof Error ? err . message : 'Activation failed' ;
43+ setState ( { status : 'error' , message } ) ;
4344 }
4445 }
4546 }
@@ -68,7 +69,7 @@ export default function SubscribeSuccessPage() {
6869 < h1 className = "text-3xl font-bold text-white mb-4" > { title } </ h1 >
6970
7071 { state . status === 'loading' && (
71- < p className = "text-slate-400 mb-8" > We' re confirming your subscription and turning on Premium…</ p >
72+ < p className = "text-slate-400 mb-8" > We' re confirming your subscription and turning on Premium…</ p >
7273 ) }
7374
7475 { state . status === 'success' && (
@@ -84,7 +85,7 @@ export default function SubscribeSuccessPage() {
8485 < div className = "font-medium mb-1" > Almost done</ div >
8586 < div className = "text-yellow-200/90" > { state . message } </ div >
8687 < div className = "text-yellow-200/80 mt-2" >
87- If this doesn' t resolve in a minute, email{ ' ' }
88+ If this doesn' t resolve in a minute, email{ ' ' }
8889 < a href = "mailto:support@foragents.dev" className = "text-cyan-300 hover:underline" >
8990 support@foragents.dev
9091 </ a > { ' ' }
@@ -106,7 +107,7 @@ export default function SubscribeSuccessPage() {
106107 </ li >
107108 < li className = "flex items-start gap-2" >
108109 < span className = "text-cyan-400" > ✓</ span >
109- You' ll receive your first daily digest tomorrow at 7 AM UTC
110+ You' ll receive your first daily digest tomorrow at 7 AM UTC
110111 </ li >
111112 </ ul >
112113 </ div >
0 commit comments