diff --git a/resources/report/html/loot-plugin-card.html b/resources/report/html/loot-plugin-card.html
index 76faaf6e..d3afa76e 100644
--- a/resources/report/html/loot-plugin-card.html
+++ b/resources/report/html/loot-plugin-card.html
@@ -483,7 +483,7 @@ loot-clear-metadata
}
}
- if (isValid || evt.target-id != 'accept') {
+ if (isValid || evt.target.id != 'accept') {
/* Fire the close event, saying whether or not to save data. */
card.dispatchEvent(new CustomEvent('loot-editor-close', {
bubbles: true,