mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-22 05:59:31 -07:00
fix(state.ts): change the increment value in decThreshold function from 1 to -1 to correctly decrease the threshold value
This commit is contained in:
@@ -56,7 +56,7 @@ export function incThreshold(): void {
|
|||||||
|
|
||||||
export function decThreshold(): void {
|
export function decThreshold(): void {
|
||||||
let s = state.get()
|
let s = state.get()
|
||||||
s = updateThreshold(s, 1)
|
s = updateThreshold(s, -1)
|
||||||
state.set(s)
|
state.set(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user