Skip to content

Commit fac2d9e

Browse files
alcercujaybuidl
authored andcommitted
fix(web): change court policy link
1 parent 06f0ca5 commit fac2d9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/src/pages/Cases/CaseDetails/Overview.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ const Overview: React.FC<{ arbitrable: string; courtID?: string }> = ({
1818
const { data: disputeDetails } = useDisputeDetailsQuery(
1919
id ? parseInt(id) : undefined
2020
);
21-
const { data: courtPolicyPath } = useCourtPolicy(
21+
const { data: courtPolicyEvent } = useCourtPolicy(
2222
courtID ? parseInt(courtID) : undefined
2323
);
24-
const { data: courtPolicy } = useIPFSQuery(courtPolicyPath?.args._policy);
24+
const courtPolicyPath = courtPolicyEvent?.args._policy;
25+
const { data: courtPolicy } = useIPFSQuery(courtPolicyPath);
2526
const courtName = courtPolicy?.name;
2627
const rewards = disputeDetails?.dispute?.subcourtID
2728
? `≥ ${utils.formatEther(

0 commit comments

Comments
 (0)