Skip to content

Commit

Permalink
fix: display the inactive status on the b2b user list
Browse files Browse the repository at this point in the history
  • Loading branch information
SGrueber committed Dec 7, 2020
1 parent 4f54c05 commit 5f7a55e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ describe('B2b User Mapper', () => {
},
{ name: 'firstName', value: 'Patricia' },
{ name: 'lastName', value: 'Miller' },
{ name: 'active', value: true },
],
} as B2bUserDataLink,
];
Expand All @@ -62,6 +63,7 @@ describe('B2b User Mapper', () => {
expect(users).toMatchInlineSnapshot(`
Array [
Object {
"active": true,
"firstName": "Patricia",
"lastName": "Miller",
"login": "pmiller@test.intershop.de",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class B2bUserMapper {
firstName: AttributeHelper.getAttributeValueByAttributeName(e.attributes, 'firstName'),
lastName: AttributeHelper.getAttributeValueByAttributeName(e.attributes, 'lastName'),
roleIDs: AttributeHelper.getAttributeValueByAttributeName(e.attributes, 'roleIDs'),
// ToDo: #IS-31051: map the active flag
active: AttributeHelper.getAttributeValueByAttributeName(e.attributes, 'active'),
}));
} else {
throw new Error('data is required');
Expand Down

0 comments on commit 5f7a55e

Please sign in to comment.