Fix a bug where an event's data was recorded in camel case. (https://github.com/woocommerce/woocommerce-admin/pull/5051)

Fixes woocommerce/woocommerce-admin#4464 

`wcadmin_tasklist_shipping_label_printing` events were being filtered into rejected events because the data being passed was in camel case instead of snake case. This fixes that issue.
This commit is contained in:
Sam Seay 2020-08-27 14:26:59 +12:00 committed by GitHub
parent c884f96bf9
commit c0c9a20f73
1 changed files with 2 additions and 2 deletions

View File

@ -253,14 +253,14 @@ class Shipping extends Component {
onComplete={ () => {
recordEvent( 'tasklist_shipping_label_printing', {
install: true,
pluginsToActivate,
plugins_to_activate: pluginsToActivate,
} );
this.completeStep();
} }
onSkip={ () => {
recordEvent( 'tasklist_shipping_label_printing', {
install: false,
pluginsToActivate,
plugins_to_activate: pluginsToActivate,
} );
getHistory().push( getNewPath( {}, '/', {} ) );
} }