From 102e9aacf718f113ad9a97db6e62bab0d2c6648a Mon Sep 17 00:00:00 2001 From: Sped0n Date: Tue, 31 Oct 2023 00:03:59 +0800 Subject: [PATCH] fix(state.ts): change the increment value in decThreshold function from 1 to -1 to correctly decrease the threshold value --- assets/ts/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ts/state.ts b/assets/ts/state.ts index 482f215..e68e9a8 100644 --- a/assets/ts/state.ts +++ b/assets/ts/state.ts @@ -56,7 +56,7 @@ export function incThreshold(): void { export function decThreshold(): void { let s = state.get() - s = updateThreshold(s, 1) + s = updateThreshold(s, -1) state.set(s) }