Pass rates in as an array, not an associative array, so it's an Array in js.
This commit is contained in:
parent
d5dd12a8f7
commit
2b2a54c5dc
|
@ -40,7 +40,7 @@ foreach ( WC()->countries->get_allowed_country_states() as $label ) {
|
|||
// Localize and enqueue our js.
|
||||
wp_localize_script( 'wc-settings-tax', 'htmlSettingsTaxLocalizeScript', array(
|
||||
'current_class' => $current_class,
|
||||
'rates' => $rates,
|
||||
'rates' => array_values( $rates ),
|
||||
'page' => $page,
|
||||
'limit' => $limit,
|
||||
'countries' => $countries,
|
||||
|
|
Loading…
Reference in New Issue