Skip to content

Commit

Permalink
Fix #1188 - In some older adaptiveContents pages 'null' is shown as a…
Browse files Browse the repository at this point in the history
… header for the advice
  • Loading branch information
torinfo committed Dec 30, 2022
1 parent 4aae5e4 commit 7dd68e3
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -1135,7 +1135,9 @@
"</div>";
}
let adviceHeader = "";
if (interaction.children.length !== 0 && adaptiveContent.dashboardMode !== 'true') {
if (interaction.children.length !== 0
&& adaptiveContent.dashboardMode !== 'true'
&& interaction.getAttribute("AdviceText") != null) {
adviceHeader = `<h4>${interaction.getAttribute("AdviceText")}</h4>`;
}

Expand Down

0 comments on commit 7dd68e3

Please sign in to comment.