Skip to content

Commit

Permalink
Merge pull request #35 from Automattic/fix/33-prefill-business-name-w…
Browse files Browse the repository at this point in the history
…ith-site-title

Business Address Step
  • Loading branch information
roccotripaldi authored Aug 30, 2016
2 parents b354b1b + 8df5e12 commit 1bae98c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion client/components/steps/business-address.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ module.exports = React.createClass( {
var state = getJetpackState();
state.showMoreModules = false;
state.jetpackConnecting = false;
const { business_address_1, business_address_2, business_city, business_name, business_state, business_zip } = JPS.bloginfo;
const { business_address_1, business_address_2, business_city, business_state, business_zip } = JPS.bloginfo;
let business_name = JPS.bloginfo.business_name;
if ( 'undefined' === typeof business_name ) {
business_name = state.site_title;
}
state = Object.assign( {}, state, { business_address_1, business_address_2, business_city, business_name, business_state, business_zip } );
return state;
},
Expand Down
2 changes: 1 addition & 1 deletion dist/jetpack-onboarding.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion dist/jetpack-onboarding.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jetpack-onboarding.js.map

Large diffs are not rendered by default.

0 comments on commit 1bae98c

Please sign in to comment.