diff --git a/src/pages/user-profile/[userId].tsx b/src/pages/user-profile/[userId].tsx index bff527e0..12faf7ee 100644 --- a/src/pages/user-profile/[userId].tsx +++ b/src/pages/user-profile/[userId].tsx @@ -543,8 +543,7 @@ const TeacherProfile: React.FC = ({ flexWrap: 'wrap', }} > - {orderedSubjects && - orderedSubjects.length > 0 && + {orderedSubjects && orderedSubjects.length > 0 ? ( orderedSubjects.map((subject: any) => { const isMutualSubject = mutualSubjects?.includes(subject); @@ -570,7 +569,18 @@ const TeacherProfile: React.FC = ({ {getLabelForSubject(subject)} ); - })} + }) + ) : ( + + - + + )} ); diff --git a/src/services/AssesmentService.ts b/src/services/AssesmentService.ts index 5ffa64bb..bb2794aa 100644 --- a/src/services/AssesmentService.ts +++ b/src/services/AssesmentService.ts @@ -5,6 +5,7 @@ import { ISearchAssessment, } from '@/utils/Interfaces'; import { post } from './RestClient'; +import { URL_CONFIG } from '@/utils/url.config'; export const getAssessmentList = async ({ sort, @@ -25,9 +26,9 @@ export const getAssessmentList = async ({ export const getDoIdForAssessmentDetails = async ({ filters, }: GetDoIdServiceParam): Promise => { - const apiUrl: string = - 'https://sunbirdsaas.com/api/content/v1/search?orgdetails=orgName%2Cemail&licenseDetails=name%2Cdescription%2Curl'; - + const apiUrl: string = `${URL_CONFIG.API.COMPOSITE_SEARCH}`; + // const apiUrl: string = + // 'https://sunbirdsaas.com/api/content/v1/search?orgdetails=orgName%2Cemail&licenseDetails=name%2Cdescription%2Curl'; const data = { request: { filters: {