Fix undefined derived_currency value for the track 'wcadmin_storeprofiler_store_details_continue' (https://github.com/woocommerce/woocommerce-admin/pull/8193)

* Fix undefined store_country value for the track wcadmin_storeprofiler_store_details_continue

* Add changelog
This commit is contained in:
Chi-Hsuan Huang 2022-01-20 08:19:20 +08:00 committed by GitHub
parent b74600593e
commit 19e7345f01
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: Fix
Fix undefined derived_currency value for the track 'wcadmin_storeprofiler_store_details_continue'. #8193

View File

@ -116,7 +116,7 @@ class StoreDetails extends Component {
recordEvent( 'storeprofiler_store_details_continue', {
store_country: getCountryCode( values.countryState ),
derived_currency: currencySettings.currency_code,
derived_currency: currencySettings.code,
email_signup: values.isAgreeMarketing,
} );