Skip to content

Commit

Permalink
TS-949 Create language selection
Browse files Browse the repository at this point in the history
- Update after coderabbit
  • Loading branch information
birkirkristmunds committed Jan 22, 2025
1 parent 830006f commit cb76996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class NewPrimarySchoolService extends BaseTemplateApiService {
}

async sendApplication({ auth, application }: TemplateApiModuleActionProps) {
return true
const newPrimarySchoolDTO =
transformApplicationToNewPrimarySchoolDTO(application)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,6 @@ export const transformApplicationToNewPrimarySchoolDTO = (
: []),
]

let noIcelandic: boolean

// TODO: BK
/*if (otherLanguagesSpokenDaily === YES) {
if (nativeLanguage === 'is' || otherLanguages?.includes('is')) {
noIcelandic = false
} else {
noIcelandic = icelandicNotSpokenAroundChild?.includes(YES)
}
} else {
noIcelandic = nativeLanguage !== 'is'
} */

const newPrimarySchoolDTO: FormDto = {
type: FormDtoTypeEnum.Registration,
user: {
Expand Down Expand Up @@ -144,13 +131,11 @@ export const transformApplicationToNewPrimarySchoolDTO = (
social: {
hasHadSupport: specialSupport === YES,
hasDiagnoses: developmentalAssessment === YES,
},
}, // Languages needs to be updated when Juni is ready with the data struccture
language: {
//TODO: BK
nativeLanguage: childLanguage,
nativeLanguage: undefined,
noIcelandic: false,
otherLanguages: undefined,
// otherLanguagesSpokenDaily === YES ? otherLanguages : undefined,
},
}
: {}),
Expand Down

0 comments on commit cb76996

Please sign in to comment.