diff --git a/resources/views/invoices/view.blade.php b/resources/views/invoices/view.blade.php index dfc2d2d107e0..a06b97991932 100644 --- a/resources/views/invoices/view.blade.php +++ b/resources/views/invoices/view.blade.php @@ -137,11 +137,8 @@ $(function() { // Check the availability of the Payment Request API first. paymentRequest.canMakePayment().then(function(result) { - if (result) { - // do nothing - } else { - console.log('not supported'); - $('#paymentButtons ul.dropdown-menu li').last().remove(); + if (! result) { + $('#paymentButtons ul.dropdown-menu li').find('a[href$="apple_pay"]').remove(); } });