Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kunstmusik committed Dec 10, 2024
1 parent 35aae8c commit 9c80248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/modals/OperatorStakingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { WithdrawalType } from '@src/types';
import { formatAddress, formatPercentage, formatWithCommas } from '@src/utils';
import { calculateOperatorRewards } from '@src/utils/rewards';
import { MathJax } from 'better-react-mathjax';
import { useCallback, useEffect, useState } from 'react';
import { useCallback, useEffect, useState, useMemo } from 'react';
import Button, { ButtonType } from '../Button';
import LabelValueRow from '../LabelValueRow';
import Tooltip from '../Tooltip';
Expand Down Expand Up @@ -78,14 +78,14 @@ const OperatorStakingModal = ({
: parseFloat(amountToWithdraw) - withdrawalFee
).toFixed(4);

const validators = {
const validators = useMemo(() => ({
stakeAmount: validateIOAmount('Stake Amount', ticker, 1, balances?.io),
withdrawAmount: validateOperatorWithdrawAmount(
'Withdraw Amount',
ticker,
currentStake,
),
};
}), [ticker, balances?.io, currentStake]);

const isFormValid = useCallback(() => {
if (tab == 0) {
Expand Down

0 comments on commit 9c80248

Please sign in to comment.