From 41fce281decc66f79623b6dbb4c6dab8504e1be2 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Thu, 22 Apr 2021 03:45:15 +0800 Subject: [PATCH] Fix manual input - fix #40 --- src/routes/wish/_counter.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/wish/_counter.svelte b/src/routes/wish/_counter.svelte index 59d3e27c..e5ab91ca 100644 --- a/src/routes/wish/_counter.svelte +++ b/src/routes/wish/_counter.svelte @@ -119,7 +119,7 @@ } function addPullDetail(newPull) { - let index = -1; + let index = 0; for (let i = pulls.length - 1; i >= 0; i--) { if (newPull.time >= pulls[i].time) { index = i + 1;