diff --git a/src/web/display/displayOneForecastForCapture.tsx b/src/web/display/displayOneForecastForCapture.tsx
index def9b9b..9f2c925 100644
--- a/src/web/display/displayOneForecastForCapture.tsx
+++ b/src/web/display/displayOneForecastForCapture.tsx
@@ -40,12 +40,12 @@ let domToImageWrapper = (reactRef) => {
};
let generateHtml = (result, imgSrc) => {
- let html = ``;
+ let html = `
`;
return html;
};
let generateMarkdown = (result, imgSrc) => {
- let markdown = `[](${result.item.url})`;
+ let markdown = `[](${result.url})`;
return markdown;
};
@@ -102,9 +102,7 @@ let generateIframeURL = (result) => {
let iframeURL = "";
if (result) {
// if check not strictly necessary today
- let parts = result.item.url
- .replace("questions", "questions/embed")
- .split("/");
+ let parts = result.url.replace("questions", "questions/embed").split("/");
parts.pop();
parts.pop();
iframeURL = parts.join("/");
@@ -117,7 +115,7 @@ let metaculusEmbed = (result) => {
let iframeURL = "";
if (result) {
iframeURL = generateIframeURL(result);
- platform = result.item.platform;
+ platform = result.platform;
}
return (
@@ -148,7 +146,7 @@ let generateMetaculusSource = (result, hasDisplayBeenCaptured) => {
}, 2000);
};
- if (result && hasDisplayBeenCaptured && result.item.platform == "Metaculus") {
+ if (result && hasDisplayBeenCaptured && result.platform == "Metaculus") {
return (