Skip to content

Commit

Permalink
* Pull only primaryBPID key out of hardened API response
Browse files Browse the repository at this point in the history
  • Loading branch information
cfaherty committed Aug 9, 2019
1 parent cd5e4ce commit 7716089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/userId/britepoolIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export const britepoolIdSubmodule = {
} else {
ajax(url, {
success: response => {
callback(britepoolIdSubmodule.normalizeValue(response));
const responseObj = britepoolIdSubmodule.normalizeValue(response);
callback(responseObj ? { primaryBPID: responseObj.primaryBPID } : null);
},
error: error => {
if (error !== '') utils.logError(error);
Expand Down

0 comments on commit 7716089

Please sign in to comment.