From 8e37d9d2b6baea8da0791994ab2dc7745c69fa1b Mon Sep 17 00:00:00 2001 From: Isky Date: Thu, 15 Aug 2024 21:27:17 +0800 Subject: [PATCH] Updated hasExecutble icon on ScannedDataBox --- components/ScannedDataBox.tsx | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) 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} + +)} + +