diff --git a/src/components/client/BridgePage.tsx b/src/components/client/BridgePage.tsx index fe16dd10..5a553a4c 100644 --- a/src/components/client/BridgePage.tsx +++ b/src/components/client/BridgePage.tsx @@ -149,7 +149,7 @@ const BridgePage = () => { } const getSpecificBalance = (id: TokenId) => { - if (id) return parseInt(balances.find(b => b.id === id)?.balance || '') + if (id) return parseInt(balances.find((b) => b.id === id)?.balance || '') return 0 } @@ -268,8 +268,8 @@ const BridgePage = () => { useEffect(() => { if (pIQBalance) - setBalances(currentBalances => - currentBalances.map(b => { + setBalances((currentBalances) => + currentBalances.map((b) => { if (b.id === TokenId.PIQ) b.balance = pIQBalance return b @@ -279,8 +279,8 @@ const BridgePage = () => { useEffect(() => { if (iqBalanceOnEth) - setBalances(currentBalances => - currentBalances.map(b => { + setBalances((currentBalances) => + currentBalances.map((b) => { if (b.id === TokenId.IQ) b.balance = iqBalanceOnEth return b @@ -293,7 +293,7 @@ const BridgePage = () => { const balance = await getUserTokenBalance(authContext) if (balance) setBalances( - balances.map(b => { + balances.map((b) => { if (b.id === TokenId.EOS) b.balance = balance.toString().replace(' IQ', '') return b diff --git a/src/components/lock/StakeIQ.tsx b/src/components/lock/StakeIQ.tsx index 4eb0bfc4..fdd66cec 100644 --- a/src/components/lock/StakeIQ.tsx +++ b/src/components/lock/StakeIQ.tsx @@ -280,7 +280,7 @@ const StakeIQ = ({ exchangeRate }: { exchangeRate: number }) => { updateIqToBeLocked(e.target.value)} + onChange={(e) => updateIqToBeLocked(e.target.value)} placeholder="23.00" value={userInput} color="fadedText4" @@ -306,7 +306,7 @@ const StakeIQ = ({ exchangeRate }: { exchangeRate: number }) => { {userTotalIQLocked < 1 && ( - updateLockend(newDate)} /> + updateLockend(newDate)} /> )} }