From f149b481177dea804d16cda0d9051db109f9867c Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Fri, 23 Apr 2021 05:16:28 +0800 Subject: [PATCH] Fix total when manually insert/delete wish --- src/routes/wish/_counter.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/wish/_counter.svelte b/src/routes/wish/_counter.svelte index e5ab91ca..529dcb8b 100644 --- a/src/routes/wish/_counter.svelte +++ b/src/routes/wish/_counter.svelte @@ -129,6 +129,7 @@ const lastPulls = [...pulls]; lastPulls.splice(index, 0, newPull); pulls = lastPulls; + total = pulls.length; closeModal(); saveData(); } @@ -146,7 +147,7 @@ const updated = pulls.slice(); updated.splice(index, 1); pulls = updated; - + total = pulls.length; closeModal(); saveData(); }