From 8abdb25593a40544b2fe1a4782b04754e2512014 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Sun, 16 Aug 2026 16:15:09 +0700 Subject: [PATCH] Fix CreateTourPage crash: add missing usePlatformFee import CreateTourPage called usePlatformFee('featuredTour') but never imported the hook, causing a "usePlatformFee is not defined" ReferenceError that crashed the /create-tour page. Added the import to match the other pages that use it. Co-authored-by: shakespeare.diy --- src/pages/CreateTourPage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/CreateTourPage.tsx b/src/pages/CreateTourPage.tsx index 32f96bc..52b29ac 100644 --- a/src/pages/CreateTourPage.tsx +++ b/src/pages/CreateTourPage.tsx @@ -17,6 +17,7 @@ import { useShops } from '@/hooks/useShops'; import { useToast } from '@/hooks/useToast'; import { LoginArea } from '@/components/auth/LoginArea'; import { FeaturedUpgrade } from '@/components/FeaturedEventUpgrade'; +import { usePlatformFee } from '@/hooks/usePlatformFee'; import { SKATE_TOUR_KIND, TOUR_SKILL_LEVELS, TOUR_SPOT_TYPES, TOUR_CATEGORIES, type TourCategory, type DestructionChallenge } from '@/lib/types'; import { Route,