[Accessibility] Fix typo in handleAdviceCardDissmiss function name (#48650)

* Fix typo in handleAdviceCardDissmiss function name

* Add changelog file
This commit is contained in:
Gabriel Manussakis 2024-08-27 23:36:25 -03:00 committed by GitHub
parent deb76cbada
commit d5993ec424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: tweak
Fix typo in handleAdviceCardDissmiss function name

View File

@ -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 }
>
<EmptyStateImage { ...emptyState } />
</AdviceCard>