From 6435b401b8c666eab9bd41848ac074536a11d444 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Mon, 23 Sep 2024 16:33:29 +0100 Subject: Fix for markers which are not true/false --- play.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/play.js b/play.js index c3b1bf2..de1670c 100644 --- a/play.js +++ b/play.js @@ -514,11 +514,19 @@ for (let id in view.persistent_events) { } // CHECK WHETHER ANY EVENT MARKERS ARE SHOWING IN THE ASIDE - +aside_events_showing = false for (let id of aside_events) { if (view.persistent_events[id]) { aside_events_showing = true; } + + //Special check for events which are not true/false + if (view.persistent_events['foreign_currency_debt_burden'] !== '') { + aside_events_showing = true + } + if (view.persistent_events['stand_fast'] !== '') { + aside_events_showing = true + } } if (aside_events_showing) { -- cgit v1.2.3