Skip to content

Commit

Permalink
fix camelcase typo that was breaking tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencern committed Oct 24, 2016
1 parent 50a9132 commit 4479fad
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -28,7 +28,7 @@ transformations.accounts.emails = function (fieldData) {

transformations.accounts.profile = function (fieldData) {
let profileObject;
if (fieldData && fieldData.addressBook && fieldData.addressbook[0] && fieldData.addressBook[0].fullName) {
if (fieldData && fieldData.addressBook && "0" in fieldData.addressBook && fieldData.addressBook[0].fullName) {
profileObject = {
firstName: _.split(fieldData.addressBook[0].fullName, " ")[0],
lastName: _.split(fieldData.addressBook[0].fullName, " ")[1],
Expand Down

1 comment on commit 4479fad

@zenweasel
Copy link
Collaborator

Choose a reason for hiding this comment

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

this works? I have never seen that syntax before

Please sign in to comment.