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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user