From 677bd25576ef558ddbcda20e4cfc4d265fa5cd71 Mon Sep 17 00:00:00 2001 From: Laura Folco Date: Thu, 13 Oct 2022 17:34:43 -0400 Subject: [PATCH] php8 fix; remove console logs --- Block/Adminhtml/CaseInfo.php | 2 +- view/frontend/web/js/view/signifyd-fingerprint.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Block/Adminhtml/CaseInfo.php b/Block/Adminhtml/CaseInfo.php index 4fad8b0f..2af858fd 100644 --- a/Block/Adminhtml/CaseInfo.php +++ b/Block/Adminhtml/CaseInfo.php @@ -92,7 +92,7 @@ public function getCaseGuaranteeDisposition() */ public function getCaseScore() { - return floor($this->getCaseEntity()->getData('score')); + return $this->getCaseEntity()->getData('score') ? floor($this->getCaseEntity()->getData('score')) : ''; } /** diff --git a/view/frontend/web/js/view/signifyd-fingerprint.js b/view/frontend/web/js/view/signifyd-fingerprint.js index cf683c6b..9eb7ed7d 100644 --- a/view/frontend/web/js/view/signifyd-fingerprint.js +++ b/view/frontend/web/js/view/signifyd-fingerprint.js @@ -32,7 +32,7 @@ define([ var me = this; if (typeof dataOrderSessionId !== 'undefined' && dataOrderSessionId.length > 0) { - console.log('Sending fingerprint...'); + //console.log('Sending fingerprint...'); me.callScript(dataOrderSessionId); @@ -42,8 +42,8 @@ define([ return true; } else { - console.log('Will not send fingerprint'); - console.log(dataOrderSessionId); + //console.log('Will not send fingerprint'); + //console.log(dataOrderSessionId); return false; }