diff --git a/components/ScannedDataBox.tsx b/components/ScannedDataBox.tsx index 803709d..af1fe5a 100644 --- a/components/ScannedDataBox.tsx +++ b/components/ScannedDataBox.tsx @@ -234,8 +234,9 @@ const ScannedDataBox: React.FC = ({ qrCodeId, clearScanData const hasExecutableStatus = { hasExecutable: details.hasExecutable ?? false, text: details.hasExecutable ? "Executable Detected" : "No Executable", - color: details.hasExecutable ? "#ff5942" : "#44c167", // Green for No Executable + color: details.hasExecutable ? "#FFA500" : "#44c167", }; + // Log to check what's happening console.log('Executable Details:', details.hasExecutable); @@ -347,10 +348,20 @@ const ScannedDataBox: React.FC = ({ qrCodeId, clearScanData {sslStrippingStatus.text} - - - {hasExecutableStatus.text} - +{/* Executtable checking */} + {hasExecutableStatus.hasExecutable ? ( + + + {hasExecutableStatus.text} + +) : ( + + + {hasExecutableStatus.text} + +)} + +