fix incorrect setAdjustment increase initial state
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
f7198b9e3f
commit
18ba617a43
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.5.37",
|
||||
"version": "0.5.38",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user