Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
no1mann committed Dec 15, 2023
1 parent 1d6ab11 commit 781ece4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,9 @@
for (let year of JingleJam.current) {
year[1].forEach(x => data.labels.add(x.x));

let currentData = year[1].map(function (m) { return { x: m.x, y: m[JingleJam.settings.isPounds ? 'p' : 'd'] }; });

if(JingleJam.isLive()){
let currentData = year[1].map(function (m) { return { x: m.x, y: m[JingleJam.settings.isPounds ? 'p' : 'd'] }; });
currentData.push({
x: JingleJam.model.date.getTime(),
y: JingleJam.settings.isPounds ? JingleJam.model.raised.yogscast + JingleJam.model.raised.fundraisers : (JingleJam.model.raised.yogscast + JingleJam.model.raised.fundraisers) * JingleJam.model.avgConversionRate
Expand Down

0 comments on commit 781ece4

Please sign in to comment.