diff --git a/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx b/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx index dc353716a..a7c4b6a0f 100644 --- a/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx +++ b/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx @@ -144,6 +144,16 @@ export default function InvestOption({ approveData, claim, optionIndex }: Invest } }, [balance, isSelfClaiming, maxCost, setMaxAmount]) + // this will set input and percentage value if you go back from the review page + useEffect(() => { + const { investmentCost } = calculateInvestmentAmounts(claim, investedAmount) + + if (investmentCost) { + onInputChange(investmentCost?.toExact()) + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []) + return (