diff --git a/src/shared/templates.js b/src/shared/templates.js
index fe213c4..0d9ad9c 100644
--- a/src/shared/templates.js
+++ b/src/shared/templates.js
@@ -183,7 +183,7 @@ const eddUiTemplate = (data) => /* html */ `
`;
exports.generateHtml = (data, hostDef) => {
- if (hostDef.id === "edd_ui_recert") {
+ if (hostDef?.id === "edd_ui_recert") {
return eddUiTemplate(data);
}
diff --git a/widget/preview/generate.js b/widget/preview/generate.js
index 4394ab3..665700d 100644
--- a/widget/preview/generate.js
+++ b/widget/preview/generate.js
@@ -2,7 +2,7 @@ const fs = require("fs/promises");
const generate = (props) => {
const pr = props.prNumber
- ? `(Pull Request #${props.prNumber})`
+ ? `(Pull Request #${props.prNumber})`
: "";
return /* html */ `