From 19e7345f013ab84b1bc0c305d042758880fe6ee5 Mon Sep 17 00:00:00 2001 From: Chi-Hsuan Huang Date: Thu, 20 Jan 2022 08:19:20 +0800 Subject: [PATCH] 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 --- .../changelogs/fix-7569-undefined-currency-code | 4 ++++ .../client/profile-wizard/steps/store-details/index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce-admin/changelogs/fix-7569-undefined-currency-code diff --git a/plugins/woocommerce-admin/changelogs/fix-7569-undefined-currency-code b/plugins/woocommerce-admin/changelogs/fix-7569-undefined-currency-code new file mode 100644 index 00000000000..10430ee0fad --- /dev/null +++ b/plugins/woocommerce-admin/changelogs/fix-7569-undefined-currency-code @@ -0,0 +1,4 @@ +Significance: patch +Type: Fix + +Fix undefined derived_currency value for the track 'wcadmin_storeprofiler_store_details_continue'. #8193 diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/store-details/index.js b/plugins/woocommerce-admin/client/profile-wizard/steps/store-details/index.js index bc2dc6e4cf6..1ddeae95f6f 100644 --- a/plugins/woocommerce-admin/client/profile-wizard/steps/store-details/index.js +++ b/plugins/woocommerce-admin/client/profile-wizard/steps/store-details/index.js @@ -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, } );