diff --git a/src/components/client/BridgePage.tsx b/src/components/client/BridgePage.tsx
index 99a8b261..0910d3c2 100644
--- a/src/components/client/BridgePage.tsx
+++ b/src/components/client/BridgePage.tsx
@@ -141,7 +141,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
}
@@ -260,8 +260,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
@@ -271,8 +271,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
@@ -285,7 +285,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 e7450e8c..f45e7d24 100644
--- a/src/components/lock/StakeIQ.tsx
+++ b/src/components/lock/StakeIQ.tsx
@@ -256,7 +256,7 @@ const StakeIQ = ({ exchangeRate }: { exchangeRate: number }) => {
updateIqToBeLocked(e.target.value)}
+ onChange={(e) => updateIqToBeLocked(e.target.value)}
placeholder="23.00"
value={userInput}
color="fadedText4"
@@ -282,7 +282,7 @@ const StakeIQ = ({ exchangeRate }: { exchangeRate: number }) => {
{userTotalIQLocked < 1 && (
- updateLockend(newDate)} />
+ updateLockend(newDate)} />
)}
}