diff --git a/client/database/index.js b/client/database/index.js index d23d55043..46d399ab6 100644 --- a/client/database/index.js +++ b/client/database/index.js @@ -148,6 +148,7 @@ class TossupCard extends React.Component { } render() { const tossup = this.props.tossup; + const powerParts = tossup.question.split("(*)"); return /*#__PURE__*/React.createElement("div", { className: "card my-2" }, /*#__PURE__*/React.createElement("div", { @@ -160,7 +161,7 @@ class TossupCard extends React.Component { className: "card-body" }, /*#__PURE__*/React.createElement("span", { dangerouslySetInnerHTML: { - __html: tossup.question + __html: powerParts.length > 1 ? "" + powerParts[0] + "(*)" + powerParts[1] : tossup.question } }), "\xA0", /*#__PURE__*/React.createElement("a", { href: "#", diff --git a/client/database/index.jsx b/client/database/index.jsx index fdc884fc1..a5d3fe5c7 100644 --- a/client/database/index.jsx +++ b/client/database/index.jsx @@ -212,6 +212,7 @@ class TossupCard extends React.Component { render() { const tossup = this.props.tossup; + const powerParts = tossup.question.split("(*)") return (
@@ -220,7 +221,7 @@ class TossupCard extends React.Component {
-   + 1 ? "" + powerParts[0] + "(*)" + powerParts[1] : tossup.question }}>  { document.getElementById('report-question-id').value = tossup._id }} id={`report-question-${tossup._id}`} data-bs-toggle="modal" data-bs-target="#report-question-modal">Report Question
ANSWER: