From 08f75915f9099898186ab6340acf753963137f5d Mon Sep 17 00:00:00 2001 From: I Made Setia Baruna Date: Wed, 3 Feb 2021 23:37:46 +0800 Subject: [PATCH] Fix bug counter when get --- src/routes/settings.svelte | 3 ++- src/routes/wish/_counter.svelte | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/settings.svelte b/src/routes/settings.svelte index 7038ee95..2ebdc686 100644 --- a/src/routes/settings.svelte +++ b/src/routes/settings.svelte @@ -151,7 +151,8 @@ {#if changelogOpen}
2021/02/03 
-- Add Xiao
+- Add Xiao +- Bug fixes
2021/02/02 
 - Add resin approximation on todo list
 - Change todo today farmable item view
diff --git a/src/routes/wish/_counter.svelte b/src/routes/wish/_counter.svelte
index 7305353b..0ef92225 100644
--- a/src/routes/wish/_counter.svelte
+++ b/src/routes/wish/_counter.svelte
@@ -172,7 +172,7 @@
   }
 
   function getLegendary() {
-    openAddModal(legendary);
+    openAddModal(legendary + 1);
 
     total += 1;
     legendary = 0;
@@ -181,7 +181,7 @@
   }
 
   function getRare() {
-    openAddModal(rare);
+    openAddModal(rare + 1);
 
     total += 1;
     legendary += 1;