Change: changedetection.io widget dont count diff if viewed (#2401)

pull/2421/head
Sean Kelly 1 year ago committed by GitHub
parent 251881a051
commit a3e00e96c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ export default function Component({ service }) {
let diffsDetected = 0;
Object.keys(data).forEach((key) => {
if (data[key].last_changed > 0 && data[key].last_checked === data[key].last_changed) {
if (data[key].last_changed > 0 && data[key].last_checked === data[key].last_changed && !data[key].viewed) {
diffsDetected += 1;
}
});

Loading…
Cancel
Save