Skip to content

Commit

Permalink
Preview fix for hypermedia
Browse files Browse the repository at this point in the history
  • Loading branch information
xjensen committed Oct 27, 2023
1 parent 0748a90 commit 393d784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion widget/preview/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs/promises");

const generate = (props) => {
const pr = props.prNumber
? `(<a href="https://github.com/cagov/benefits-recommendation-widget-front/pull/${props.prNumber}">Pull Request #${props.prNumber}</a>)`
? `(<a href="https://github.com/cagov/benefits-recommender/pull/${props.prNumber}">Pull Request #${props.prNumber}</a>)`
: "";

return /* html */ `
Expand Down

0 comments on commit 393d784

Please sign in to comment.