@@ -5,11 +5,13 @@ import { useAccount } from "wagmi";
55import { useLockOverlayScroll } from "hooks/useLockOverlayScroll" ;
66import { useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery" ;
77import { useDrawQuery } from "queries/useDrawQuery" ;
8+ import { useAppealCost } from "queries/useAppealCost" ;
89import Classic from "./Classic" ;
910import VotingHistory from "./VotingHistory" ;
1011import Popup , { PopupType } from "components/Popup" ;
1112import { Periods } from "consts/periods" ;
1213import { isUndefined } from "utils/index" ;
14+ import { isLastRound } from "utils/isLastRound" ;
1315import { getPeriodEndTimestamp } from "components/DisputeCard" ;
1416import { useDisputeKitClassicIsVoteActive } from "hooks/contracts/generated" ;
1517import VoteIcon from "assets/svgs/icons/voted.svg" ;
@@ -44,6 +46,7 @@ const Voting: React.FC<IVoting> = ({ arbitrable, currentPeriodIndex }) => {
4446 const { address } = useAccount ( ) ;
4547 const { id } = useParams ( ) ;
4648 const { data : disputeData } = useDisputeDetailsQuery ( id ) ;
49+ const { data : appealCost } = useAppealCost ( id ) ;
4750 const { data : drawData } = useDrawQuery ( address ?. toLowerCase ( ) , id , disputeData ?. dispute ?. currentRound . id ) ;
4851 const roundId = disputeData ?. dispute ?. currentRoundIndex ;
4952 const voteId = drawData ?. draws ?. [ 0 ] ?. voteID ;
@@ -63,6 +66,15 @@ const Voting: React.FC<IVoting> = ({ arbitrable, currentPeriodIndex }) => {
6366
6467 return (
6568 < >
69+ { ! isUndefined ( appealCost ) && isLastRound ( appealCost ) && (
70+ < >
71+ < InfoContainer >
72+ < InfoCircle />
73+ This dispute is on its last round. Vote wisely, It cannot be appealed any further.
74+ </ InfoContainer >
75+ < br > </ br >
76+ </ >
77+ ) }
6678 { drawData ?. draws . length === 0 && (
6779 < >
6880 < InfoContainer >
0 commit comments