Skip to content

Commit

Permalink
Merge pull request #748 from MadhuMosip/develop
Browse files Browse the repository at this point in the history
MOSIP-35115 removed fullName hardcoded value to get preferred languages
  • Loading branch information
aranaravi authored Aug 8, 2024
2 parents aa5cf43 + 6553eda commit bef0303
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,14 @@ export class UpdatedemographicComponent implements OnInit, OnDestroy {
.subscribe((response) => {
if (response["response"]) {
this.userInfo = response["response"];
this.userInfo['fullName'].forEach(item=>{
this.getUserPerfLang.indexOf(item.language) === -1 ? this.getUserPerfLang.push(item.language) : ''
Object.keys(this.userInfo).forEach(item =>{
if(typeof this.userInfo[item] !== 'string' && this.userInfo[item].length){
if(this.getUserPerfLang.length){
this.userInfo[item].forEach(eachItem=>{
this.getUserPerfLang.indexOf(eachItem.language) === -1 ? this.getUserPerfLang.push(eachItem.language) : ''
})
}
}
})
UpdatedemographicComponent.actualData = response["response"];
this.buildData()
Expand Down

0 comments on commit bef0303

Please sign in to comment.