Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9490 from NejcZdovc/redux/autofillAddressPanel
Browse files Browse the repository at this point in the history
Converts AutofillAddressPanel into redux component
  • Loading branch information
NejcZdovc authored Jun 20, 2017
2 parents 26e3fa6 + 57d207a commit 759e164
Show file tree
Hide file tree
Showing 11 changed files with 183 additions and 166 deletions.
22 changes: 11 additions & 11 deletions app/autofill.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ module.exports.init = () => {
})
}

module.exports.addAutofillAddress = (detail, guid) => {
module.exports.addAutofillAddress = (detail) => {
session.defaultSession.autofill.addProfile({
full_name: detail.name,
company_name: detail.organization,
street_address: detail.streetAddress,
city: detail.city,
state: detail.state,
postal_code: detail.postalCode,
country_code: detail.country,
phone: detail.phone,
email: detail.email,
guid: guid
full_name: detail.get('name'),
company_name: detail.get('organization'),
street_address: detail.get('streetAddress'),
city: detail.get('city'),
state: detail.get('state'),
postal_code: detail.get('postalCode'),
country_code: detail.get('country'),
phone: detail.get('phone'),
email: detail.get('email'),
guid: detail.get('guid')
})
}

Expand Down
Loading

0 comments on commit 759e164

Please sign in to comment.