From 79e274190feb050350fa4d1431dbd7c314ad3524 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Wed, 25 Jun 2025 00:38:10 +0600 Subject: [PATCH] fix: hydration error --- .../GenerateCourse/AICourseContent.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/components/GenerateCourse/AICourseContent.tsx b/src/components/GenerateCourse/AICourseContent.tsx index 78e8570cc..9a71d89cc 100644 --- a/src/components/GenerateCourse/AICourseContent.tsx +++ b/src/components/GenerateCourse/AICourseContent.tsx @@ -256,12 +256,14 @@ export function AICourseContent(props: AICourseContentProps) {
-
- setShowUpgradeModal(true)} - onShowLimits={() => setShowAILimitsPopup(true)} - /> -
+ {!isLoading && ( +
+ setShowUpgradeModal(true)} + onShowLimits={() => setShowAILimitsPopup(true)} + /> +
+ )} {viewMode === 'module' && (
-
-
- setShowUpgradeModal(true)} - onShowLimits={() => setShowAILimitsPopup(true)} - /> + {!isLoading && ( +
+
+ setShowUpgradeModal(true)} + onShowLimits={() => setShowAILimitsPopup(true)} + /> +
-
+ )}