diff --git a/packages/js/product-editor/changelog/fix-misspelling-in-handleAdviceCardDismiss-func-name b/packages/js/product-editor/changelog/fix-misspelling-in-handleAdviceCardDismiss-func-name new file mode 100644 index 00000000000..2f54b48b2f0 --- /dev/null +++ b/packages/js/product-editor/changelog/fix-misspelling-in-handleAdviceCardDismiss-func-name @@ -0,0 +1,4 @@ +Significance: minor +Type: tweak + +Fix typo in handleAdviceCardDissmiss function name diff --git a/packages/js/product-editor/src/blocks/generic/linked-product-list/edit.tsx b/packages/js/product-editor/src/blocks/generic/linked-product-list/edit.tsx index 96a3767afa1..12636655cd8 100644 --- a/packages/js/product-editor/src/blocks/generic/linked-product-list/edit.tsx +++ b/packages/js/product-editor/src/blocks/generic/linked-product-list/edit.tsx @@ -259,7 +259,7 @@ export function LinkedProductListBlockEdit( { setLinkedProductIds( newLinkedProducts ); } - function handleAdviceCardDissmiss() { + function handleAdviceCardDismiss() { recordEvent( 'linked_products_placeholder_dismiss', { source: TRACKS_SOURCE, field: property, @@ -297,7 +297,7 @@ export function LinkedProductListBlockEdit( { tip={ emptyState.tip } dismissPreferenceId={ `woocommerce-product-${ property }-advice-card-dismissed` } isDismissible={ emptyState.isDismissible } - onDismiss={ handleAdviceCardDissmiss } + onDismiss={ handleAdviceCardDismiss } >