File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Review/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,15 @@ define([
5050
5151 $ ( function ( ) {
5252 $ ( '.product-info-main .reviews-actions a' ) . click ( function ( event ) {
53- var acnchor ;
53+ var anchor ;
5454
5555 event . preventDefault ( ) ;
56- acnchor = $ ( this ) . attr ( 'href' ) . replace ( / ^ .* ?( # | $ ) / , '' ) ;
56+ anchor = $ ( this ) . attr ( 'href' ) . replace ( / ^ .* ?( # | $ ) / , '' ) ;
5757 $ ( '.product.data.items [data-role="content"]' ) . each ( function ( index ) { //eslint-disable-line
5858 if ( this . id == 'reviews' ) { //eslint-disable-line eqeqeq
5959 $ ( '.product.data.items' ) . tabs ( 'activate' , index ) ;
6060 $ ( 'html, body' ) . animate ( {
61- scrollTop : $ ( '#' + acnchor ) . offset ( ) . top - 50
61+ scrollTop : $ ( '#' + anchor ) . offset ( ) . top - 50
6262 } , 300 ) ;
6363 }
6464 } ) ;
You can’t perform that action at this time.
0 commit comments