From b2339a8fab4a95f8be8798e2a8fed9f12c9a74a9 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 3 Sep 2026 21:23:32 +0700 Subject: [PATCH] Fix final 2 type errors: cast profile through unknown in CoachDetailPage, remove invalid variant/size props from ZapButton in TourDetailPage Co-authored-by: shakespeare.diy --- src/pages/CoachDetailPage.tsx | 2 +- src/pages/TourDetailPage.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/CoachDetailPage.tsx b/src/pages/CoachDetailPage.tsx index f77f00c..0f053f8 100644 --- a/src/pages/CoachDetailPage.tsx +++ b/src/pages/CoachDetailPage.tsx @@ -143,7 +143,7 @@ export default function CoachDetailPage() { // read them through a single typed accessor that returns an optional string // instead of scattering casts across the JSX. Presence is still gated by the // isCoach/isBuilder/… flags before these are shown. - const pf = profile as Record; + const pf = profile as unknown as Record; const pget = (key: string): string | undefined => { const v = pf[key]; return typeof v === 'string' && v.length > 0 ? v : undefined; diff --git a/src/pages/TourDetailPage.tsx b/src/pages/TourDetailPage.tsx index e4175e1..9d0616e 100644 --- a/src/pages/TourDetailPage.tsx +++ b/src/pages/TourDetailPage.tsx @@ -200,8 +200,6 @@ export default function TourDetailPage() {