Adjusted disability mock-data and service mapping to match api

This commit is contained in:
Erik Tiekstra
2021-08-06 09:57:10 +02:00
parent 1e2b8bf824
commit 229fb838e5
4 changed files with 10 additions and 23 deletions

View File

@@ -106,11 +106,7 @@ function generateDeltagare(amount = 10) {
}))
: [],
},
// disabilities: {
// funktionsnedsattningar: Math.random() > 0.3 ? chooseRandom(DISABILITIES, faker.datatype.number(3)) : [],
// },
// TODO: Move to different structure. Temporary exposing disabilities in this structure as it is the way the API is exposing the data.
disabilities: [Math.random() > 0.3 ? chooseRandom(DISABILITIES, faker.datatype.number(3)) : []],
disabilities: Math.random() > 0.3 ? chooseRandom(DISABILITIES, faker.datatype.number(3)) : [],
workExperiences: {
arbetslivserfarenheter: chooseRandom(WORK_EXPERIENCES, faker.datatype.number(WORK_EXPERIENCES.length)),
},