Skip to content

Commit

Permalink
fix(dropdown): update from competency id to competency name and fixed…
Browse files Browse the repository at this point in the history
… level number mismatch
  • Loading branch information
VamshiBatta07 committed Apr 26, 2024
1 parent 5aa0a7e commit 95eb88a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/questionBank/SelectComeptency.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ const SelectComeptency = () => {
</p>
<SelectTag
options={competencyArray}
value={currentCompetency}
// value={currentCompetency}
value={
competencyArray.find((comp) => comp.value === currentCompetency)
?.label ?? ''
}
onChange={(option) => {
if (typeof option == 'number') {
setCurrentCompetency(option);
Expand Down
2 changes: 1 addition & 1 deletion src/components/wpcasOverView/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Questions = ({
return (
<div className='my-3' key={index + 1}>
<p className='font-Outfit text-base font-medium leading-[130%] text-black'>
Level {index + 1} : {data.competencyLevelName}
Level: {data.competencyLevelNumber}
</p>

<p className='font-Outfit mt-2 text-base font-normal leading-[130%] text-[#272728]'>
Expand Down

0 comments on commit 95eb88a

Please sign in to comment.