Skip to content

Commit

Permalink
Update jQuery .size()
Browse files Browse the repository at this point in the history
  • Loading branch information
srenon committed Feb 25, 2023
1 parent 9c28538 commit 219be7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/adminhtml/web/js/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ define([
var $accessCode = $result.find('#magepal_checkout_preview_success_page_access_code');
var $orderIncrement = $result.find('#magepal_checkout_preview_success_page_order_increment');

if ($accessCode.size() && $accessCode.val()
&& $orderIncrement.size() && $orderIncrement.val()
if ($accessCode.length && $accessCode.val()
&& $orderIncrement.length && $orderIncrement.val()
) {
url = urlTemplate.replace("--previewAccessCode--", $accessCode.val());
}
Expand Down

0 comments on commit 219be7d

Please sign in to comment.