Skip to content

Commit

Permalink
chore: make the linter happier
Browse files Browse the repository at this point in the history
  • Loading branch information
yerdua committed Sep 15, 2023
1 parent bfb744f commit 542108e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ const Detail = ({
value,
unlock,
unlockable,
inModal,
children,
}: PropsWithChildren<{
title: string;
unlock?: () => void;
unlockable?: Token;
inModal?: boolean;
value?: Token;
}>) => {
const [isOpen, setIsOpen] = useState(false);
Expand Down Expand Up @@ -109,7 +107,6 @@ const CurrentVotingBalanceDetails = ({
value={lockedVoteBalance}
unlock={lockedVoteBalance?.gt(0) ? unlock : undefined}
unlockable={new StCelo(lockedVoteBalance?.minus(lockedStCeloInVoting || 0))}
inModal={inModal}
>
When a you vote on a governance proposal, your stCELO balance gets locked. <br />
This stCELO is not automatically unlocked after a proposal voting period has elapsed and
Expand All @@ -118,7 +115,7 @@ const CurrentVotingBalanceDetails = ({
</Detail>
)}
{showLockedStCeloInVoting && (
<Detail title={'Locked stCELO in voting'} value={lockedStCeloInVoting} inModal={inModal}>
<Detail title={'Locked stCELO in voting'} value={lockedStCeloInVoting}>
When a you vote on a governance proposal, your stCELO balance gets locked. <br />
You may not unlock your stCELO locked in voting as long as the proposal hasn&apos;t
expired.
Expand Down
2 changes: 1 addition & 1 deletion src/features/validators/components/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Details = ({ groupAddress, name }: Props) => {

useEffect(() => {
if (isConnected) {
loadBalances?.();
void loadBalances?.().catch((error) => console.error(error));
}
}, [loadBalances, isConnected]);

Expand Down

0 comments on commit 542108e

Please sign in to comment.