fix incorrect setAdjustment increase initial state

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-03-04 14:52:14 +03:00
parent f7198b9e3f
commit 18ba617a43
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.5.37",
"version": "0.5.38",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -55,7 +55,7 @@ export const SetAdjustmentSteps = ({ chainId, toInitialStep, addCalldata, args }
const [rate, setRate] = useState(args?.at(0));
const [target, setTarget] = useState(args?.at(1));
const [increase, setIncrease] = useState(args?.at(1) ?? true);
const [increase, setIncrease] = useState(args === undefined ? true : args.at(2));
const handleProceed = () => {
addCalldata(prepareSetAdjustmentCalldata(chainId, rate, target, increase));