Added console.log to troubelshoot handlePayload to return type to scannedDataBox, Pending fix for data not displayed on history page

This commit is contained in:
2024-06-30 13:26:16 +08:00
parent 0f9453ef45
commit 4d4b55ab71
3 changed files with 28 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ interface ScanResult {
const ScannedDataBox: React.FC<ScannedDataBoxProps> = ({ data, dataType, clearScanData }) => {
const [scanResult, setScanResult] = useState<ScanResult | null>(null);
const [isModalVisible, setIsModalVisible] = useState(false);
console.log("ScannedDataBox -> Data", data);
console.log("DataType", dataType);
useEffect(() => {
// Assuming scanResult is directly related to data