From 7cc413103cb1a575f53dc97edfb85db8bc998300 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Tue, 24 Oct 2023 20:16:29 -0700 Subject: [PATCH] Add length --- src/orbital-trails/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orbital-trails/app.js b/src/orbital-trails/app.js index d32719d..e505875 100644 --- a/src/orbital-trails/app.js +++ b/src/orbital-trails/app.js @@ -163,7 +163,7 @@ const loop = (timestamp) => { orb.render(timestamp); }); state.orbs = state.orbs.filter((orb) => !orb.removed); - state.total = state.orbs + state.total = state.orbs.length; ctx.restore(); };