Skip to content

Commit

Permalink
Merge pull request #749 from MadhuMosip/release-0.9.x
Browse files Browse the repository at this point in the history
MOSIP-35115 removed fullName hardcoded value to get preferred languages
  • Loading branch information
ckm007 authored Aug 8, 2024
2 parents 9c5eeed + d156767 commit 6286a1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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
1 change: 0 additions & 1 deletion resident-ui/src/app/shared/dialog/dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export class DialogComponent implements OnInit {

async ngOnInit() {
this.input = this.data;
console.log(this.input)
this.translateService
.getTranslation(localStorage.getItem("langCode"))
.subscribe(response => {
Expand Down

0 comments on commit 6286a1c

Please sign in to comment.