diff --git a/package.json b/package.json index e183af8..45826e7 100644 --- a/package.json +++ b/package.json @@ -105,5 +105,6 @@ "volta": { "node": "16.20.2", "yarn": "1.22.10" - } + }, + "packageManager": "yarn@1.22.22" } diff --git a/src/components/case-details-card.jsx b/src/components/case-details-card.jsx index c90b708..3538978 100644 --- a/src/components/case-details-card.jsx +++ b/src/components/case-details-card.jsx @@ -241,6 +241,14 @@ export default function CaseDetailsCard({ ID }) { const metaEvidence = dispute && getMetaEvidence(chainId, dispute.arbitrated, KlerosLiquid.address, ID); const evidence = useEvidence(chainId, ID); + const [showRefuse, setShowRefuse] = useState(false); + useEffect(() => { + const timer = setTimeout(() => { + setShowRefuse(true); + }, 180000); + return () => clearTimeout(timer); + }, []); + const { send: sendCommit, status: sendCommitStatus } = useCacheSend("KlerosLiquid", "castCommit"); const { send: sendVote, status: sendVoteStatus } = useCacheSend("KlerosLiquid", "castVote"); const onJustificationChange = useCallback(({ currentTarget: { value } }) => setJustification(value), []); @@ -763,7 +771,7 @@ export default function CaseDetailsCard({ ID }) { )} )} - {dispute && Number(dispute.period) < "3" && !votesData.voted && ( + {showRefuse && dispute && Number(dispute.period) < "3" && !votesData.voted && ( <>