Skip to content

Commit

Permalink
Issue #PS-000 feat: Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Aug 2, 2024
1 parent 9073788 commit 036605b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/pages/centers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,21 @@ const TeachingCenters = () => {
const blockName = block.cohortName;
const blockId = block.cohortId;
localStorage.setItem('blockParentId', blockId);

const stateField = block?.customField.find(
(field: any) => field.label === 'State'
(field: any) => field.label === 'STATES'
);
setStateCode(stateField.code);
// setStateFieldId(stateField.fieldId);

const districtField = block?.customField.find(
(field: any) => field.label === 'District'
(field: any) => field.label === 'DISTRICTS'
);
setDistrictCode(districtField.code);
// setDistrictFieldId(districtField.fieldId);

const blockField = block?.customField.find(
(field: any) => field.label === 'Block'
(field: any) => field.label === 'BLOCKS'
);
setBlockCode(blockField.code);
// setBlockFieldId(blockField.fieldId);
Expand Down
6 changes: 5 additions & 1 deletion src/pages/user-profile/[userId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ const TeacherProfile = () => {
const remainingSubjects = mainSubjects?.filter(
(subject) => !teachSubjects?.includes(subject)
);
const orderedSubjects = [...mutualSubjects, ...remainingSubjects];

let orderedSubjects: any;
if (remainingSubjects?.length) {
orderedSubjects = [...mutualSubjects, ...remainingSubjects];
}

// Function to get label for a subject from the options array
const getLabelForSubject = (subject: string) => {
Expand Down

0 comments on commit 036605b

Please sign in to comment.