diff --git a/resources/views/account/accept/create.blade.php b/resources/views/account/accept/create.blade.php index e22798505b..4dc5d5cd6f 100644 --- a/resources/views/account/accept/create.blade.php +++ b/resources/views/account/accept/create.blade.php @@ -134,15 +134,11 @@ }); $('#submit-button').on("click", function (event) { - if(signaturePad != null) { - if (signaturePad.isEmpty()) { - alert("Please provide signature first."); - return false; - } else { - $('#signature_output').val(signaturePad.toDataURL()); - } - } - }); + if (signaturePad.isEmpty()) { + alert("Please provide signature first."); + return false; + } else { + $('#signature_output').val(signaturePad.toDataURL());