diff --git a/src/pages/SystemView.tsx b/src/pages/SystemView.tsx index a344613..54b1682 100644 --- a/src/pages/SystemView.tsx +++ b/src/pages/SystemView.tsx @@ -37,9 +37,11 @@ export const SystemView = () => { const updatedSignature: Pick = { updated: new Date().toISOString() } - if (existingRecord.type == "" && signature.type != "") + // Existing record has no type and our new signature has a type + if (!!!existingRecord.type && !!signature.type) updatedSignature.type = signature.type; - if (existingRecord.signame == "" && signature.signame != "") + // Existing record has no signame and our new signature has a signame + if (!!!existingRecord.signame && !!signature.signame) updatedSignature.signame = signature.signame; // Update existing signature only if new scan percentage is higher const existingScannedPercentage = parseScannedPercentage(existingRecord.scanned);