From 5677d8d1b445d3f83bcb8c87a5c45140acea766f Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Tue, 25 Nov 2025 07:33:37 +0100 Subject: [PATCH] fix: Correct useEffect placement in projection page - Moved useEffect hook before return statement (proper React component structure) - Was causing Docker build failures with 'Unexpected token' error - useEffect must be inside component function but before JSX return - Build now completes successfully in 71.8s --- app/projection/page.tsx | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/app/projection/page.tsx b/app/projection/page.tsx index 8d2b5f1..fcfd32d 100644 --- a/app/projection/page.tsx +++ b/app/projection/page.tsx @@ -22,31 +22,6 @@ export default function ProjectionPage() { const WEEKLY_GROWTH_RATE = 0.50 // 50% per week (proven from database) const START_DATE = new Date('2025-11-24') - return ( -
- {/* Back to Home Button */} -
- - - - - Back to Dashboard - -
- useEffect(() => { async function fetchCurrentCapital() { try {