         stateInput.prop('disabled', !statesRequired)
         stateInput.removeClass('hidden')
         stateSelect.removeClass('required')
+      unless window.currentAddress == null
+        fillPcaProvince stateSelect.attr 'id'
 
     $('#bcountry select').change ->
       updateState 'b'

$ ->
  if $('#checkout_form_address').is('*')
    # Hidden by default to support browsers with javascript disabled
    $('.js-address-fields').show()

    $('#checkout_form_address').validate()

    getCountryId = (region) ->
      $('#' + region + 'country select').val()

            fillStates(region)
        else
          fillStates(region)

    fillPcaProvince = (element) ->
      pca.setValue(element, window.currentAddress.ProvinceName)

    fillStates = (region) ->
      countryId = getCountryId(region)
