diff --git a/client/lib/states-list/README.md b/client/lib/states-list/README.md index 7ed263f8f2673..1635da44cdf37 100644 --- a/client/lib/states-list/README.md +++ b/client/lib/states-list/README.md @@ -19,7 +19,7 @@ The following public methods are available: This fetches the corresponding list of states from the server. The list is cached in the store upon retrieval. -### `getForCountry( countryCode )` +### `getByCountry( countryCode )` This retrieves the list of states as a set of key and value pairs. The list is loaded from the store and then fetched once from the server to update any stale data. diff --git a/client/lib/states-list/index.js b/client/lib/states-list/index.js index 1991617634894..921b7d80fa559 100644 --- a/client/lib/states-list/index.js +++ b/client/lib/states-list/index.js @@ -82,7 +82,7 @@ StatesList.prototype.fetchForCountry = function( countryCode ) { * @param {string} countryCode - country code * @returns {object} the list of states */ -StatesList.prototype.getForCountry = function( countryCode ) { +StatesList.prototype.getByCountry = function( countryCode ) { var data; if ( ! this.data ) { diff --git a/client/my-sites/upgrades/components/form/state-select.jsx b/client/my-sites/upgrades/components/form/state-select.jsx index 3267775754ca7..59d8e7a8d8133 100644 --- a/client/my-sites/upgrades/components/form/state-select.jsx +++ b/client/my-sites/upgrades/components/form/state-select.jsx @@ -31,7 +31,7 @@ module.exports = React.createClass( { focus: this.state.focus, invalid: this.props.invalid } ), - statesList = this.props.statesList.getForCountry( this.props.countryCode ), + statesList = this.props.statesList.getByCountry( this.props.countryCode ), options = []; if ( isEmpty( statesList ) ) {