Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/141 decode error gv #158

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Bug/141 decode error gv #158

merged 2 commits into from
Apr 21, 2020

Conversation

caebr
Copy link
Collaborator

@caebr caebr commented Apr 21, 2020

No description provided.

@caebr caebr requested a review from hupf April 21, 2020 09:10
@hupf hupf self-assigned this Apr 21, 2020
@@ -20,7 +20,7 @@ const Person = t.type({
// Email: Option(t.string),
// Email2: Option(t.string),
FirstName: Option(t.string),
Gender, // t.union([t.literal('M'), t.literal('F')]),
Gender: t.union([t.literal('M'), t.literal('F'), t.literal('X')]),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Es würde sich natürlich auch für diesen Union-Type anbieten, ihn im commen-types.ts zu definieren. Ich würde es aber mal so lassen, im Moment sind es ja zwei Orte an denen er vorkommt.

@@ -93,6 +93,9 @@ export class PresenceControlDetailService {
legalRepresentatives: ReadonlyArray<LegalRepresentative>,
apprenticeshipContracts: ReadonlyArray<ApprenticeshipContract>
): Observable<ReadonlyArray<Person>> {
if ([...legalRepresentatives, ...apprenticeshipContracts].length === 0) {
return of([]);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hupf hupf assigned caebr and unassigned hupf Apr 21, 2020
@caebr caebr merged commit b3c4dbb into master Apr 21, 2020
@caebr caebr deleted the bug/141-decode-error-gv branch April 21, 2020 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants