Skip to content

Commit

Permalink
Converts AutofillAddressPanel into redux component
Browse files Browse the repository at this point in the history
Resolves brave#9444

Auditors: @bsclifton @bridiver

Test Plan:
  • Loading branch information
NejcZdovc committed Jun 20, 2017
1 parent 1a75d4d commit fa21adb
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 fa21adb

Please sign in to comment.