Skip to content

Commit 4cf47e6

Browse files
committed
fix(web): broken import
1 parent aa7390e commit 4cf47e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/components/Popup/Description/StakeWithdraw.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
22
import styled from "styled-components";
3-
import { isUndefined } from "utils/index";
3+
import { formatUnits } from "viem";
44
import { useAccount } from "wagmi";
5+
import { isUndefined } from "utils/index";
56
import { useKlerosCoreGetJurorBalance } from "hooks/contracts/generated";
6-
import { format } from "src/pages/Dashboard/Courts/CourtCard";
77
import KlerosLogo from "tsx:svgs/icons/kleros.svg";
88

99
const Container = styled.div`
@@ -88,7 +88,7 @@ const StakeWithdraw: React.FC<IStakeWithdraw> = ({ pnkStaked, courtName, isStake
8888

8989
<TotalStakeContainer>
9090
<StyledKlerosLogo /> <MyStakeContainer>My Stake:</MyStakeContainer>{" "}
91-
<AmountContainer>{`${format(jurorBalance?.[0])} PNK`} </AmountContainer>
91+
<AmountContainer>{`${formatUnits(jurorBalance?.[0] ?? BigInt(0), 18)} PNK`} </AmountContainer>
9292
</TotalStakeContainer>
9393
</Container>
9494
);

0 commit comments

Comments
 (0)