Skip to content

Commit

Permalink
fixes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Adebesin-Cell committed Jun 24, 2024
1 parent 0bd3eba commit fdeeb79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/components/client/BridgePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/components/lock/StakeIQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const StakeIQ = ({ exchangeRate }: { exchangeRate: number }) => {
<Flex align="center" gap="2.5" w="full">
<Input
variant="unstyled"
onChange={e => updateIqToBeLocked(e.target.value)}
onChange={(e) => updateIqToBeLocked(e.target.value)}
placeholder="23.00"
value={userInput}
color="fadedText4"
Expand All @@ -282,7 +282,7 @@ const StakeIQ = ({ exchangeRate }: { exchangeRate: number }) => {
</Flex>
</VStack>
{userTotalIQLocked < 1 && (
<LockSlider updateLockend={newDate => updateLockend(newDate)} />
<LockSlider updateLockend={(newDate) => updateLockend(newDate)} />
)}
<IconButton
icon={<RiArrowDownLine />}
Expand Down

0 comments on commit fdeeb79

Please sign in to comment.