Skip to content

Commit

Permalink
refactor(web): rabbit-feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Dec 19, 2024
1 parent c4916c2 commit efedc56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/src/pages/Courts/CourtDetails/StakePanel/InputDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useDebounce } from "react-use";
import { useParsedAmount } from "hooks/useParsedAmount";
import { usePnkData } from "hooks/usePNKData";
import { commify, uncommify } from "utils/commify";
import { formatETH, formatPNK, roundNumberDown } from "utils/format";
import { formatPNK, roundNumberDown } from "utils/format";
import { isUndefined } from "utils/index";

import { useCourtDetails } from "queries/useCourtDetails";
Expand Down Expand Up @@ -98,7 +98,7 @@ const InputDisplay: React.FC<IInputDisplay> = ({ action, amount, setAmount }) =>
parsedAmount !== 0n &&
jurorBalance[2] + parsedAmount < BigInt(courtDetails?.court?.minStake)
) {
setErrorMsg(`Min Stake in court is: ${formatETH(courtDetails?.court?.minStake)}`);
setErrorMsg(`Min Stake in court is: ${formatPNK(courtDetails?.court?.minStake)} PNK`);
} else {
setErrorMsg(undefined);
}
Expand Down

0 comments on commit efedc56

Please sign in to comment.