fix diff check on test runs

This commit is contained in:
timothycarambat
2023-10-19 15:36:03 -07:00
parent d26a6565f4
commit e6483bfdb9
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ const Notification = {
});
return notifications;
} catch (e) {
console.error(e.message);
console.error(e.message, e);
return [];
}
},
@@ -370,8 +370,9 @@ function TextComp({
const comparison = comparisons.find((comp) => comp.vectorId === key);
if (!comparison) return false;
return (
(!!textContent && !!comparison) ||
!!comparison.hasOwnProperty('text') ||
!!textContent &&
!!comparison &&
!!comparison.hasOwnProperty('text') &&
comparison.text !== textContent
);
});