diff --git a/assets/javascripts/wizard/initializers/custom.js.es6 b/assets/javascripts/wizard/initializers/custom.js.es6 index 790b570e..fbdac38f 100644 --- a/assets/javascripts/wizard/initializers/custom.js.es6 +++ b/assets/javascripts/wizard/initializers/custom.js.es6 @@ -93,9 +93,9 @@ export default { if ($element.length) { $([document.documentElement, document.body]).animate({ - scrollTop: $(query).offset().top - 200 + scrollTop: $element.offset().top - 200 }, 400, function() { - $(query).wiggle(2, 100); + $element.wiggle(2, 100); }); } });