From 7daf2e5d1d0c5c691bee1c24901110c781f91c27 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Mon, 11 Mar 2024 19:57:50 +0600 Subject: [PATCH] fix: type errors --- src/components/GenerateRoadmap/GenerateRoadmap.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/GenerateRoadmap/GenerateRoadmap.tsx b/src/components/GenerateRoadmap/GenerateRoadmap.tsx index 174e8c3b5..8bff2b6d5 100644 --- a/src/components/GenerateRoadmap/GenerateRoadmap.tsx +++ b/src/components/GenerateRoadmap/GenerateRoadmap.tsx @@ -194,7 +194,7 @@ export function GenerateRoadmap() { return; } - if (roadmapTerm === currentRoadmap?.topic) { + if (roadmapTerm === currentRoadmap?.term) { return; } @@ -285,7 +285,8 @@ export function GenerateRoadmap() { pageProgressMessage.set('Loading Roadmap'); const { response, error } = await httpGet<{ - topic: string; + term: string; + title: string; data: string; }>(`${import.meta.env.PUBLIC_API_URL}/v1-get-ai-roadmap/${roadmapId}`); @@ -459,7 +460,7 @@ export function GenerateRoadmap() { {isLoggedInUser && !openAPIKey && (