diff --git a/components/markets/MarketHeader.tsx b/components/markets/MarketHeader.tsx index cace03741..a5571dadf 100644 --- a/components/markets/MarketHeader.tsx +++ b/components/markets/MarketHeader.tsx @@ -45,6 +45,7 @@ import { MdModeEdit, MdOutlineHistory } from "react-icons/md"; import { AddressDetails } from "./MarketAddresses"; import { MarketTimer, MarketTimerSkeleton } from "./MarketTimer"; import { MarketPromotionCallout } from "./PromotionCallout"; +import Link from "next/link"; export const QuillViewer = dynamic( () => import("../../components/ui/QuillViewer"), @@ -140,7 +141,9 @@ const MarketOutcome: FC<
By:
- + + +
)} @@ -236,10 +239,12 @@ const MarketHistory: FC< {marketHistory?.reported?.by ? ( - + + + ) : ( "Unknown" )} @@ -270,10 +275,12 @@ const MarketHistory: FC< {dispute?.by ? ( - + + + ) : ( "Unknown" )} @@ -631,7 +638,7 @@ const MarketHeader: FC<{ {marketStage?.type === "Court" ? (

Market is in court

- {caseId ? ( + {caseId != null ? ( ) : ( diff --git a/lib/hooks/queries/court/useCourtVoteDraws.ts b/lib/hooks/queries/court/useCourtVoteDraws.ts index 9ea4beb3d..9d131b843 100644 --- a/lib/hooks/queries/court/useCourtVoteDraws.ts +++ b/lib/hooks/queries/court/useCourtVoteDraws.ts @@ -10,7 +10,7 @@ export const useCourtVoteDrawsForCase = (caseId?: number) => { const [sdk, id] = useSdkv2(); const queryClient = useQueryClient(); - const enabled = !!sdk && isRpcSdk(sdk) && caseId; + const enabled = !!sdk && isRpcSdk(sdk) && caseId != null; const query = useQuery( [id, voteDrawsRootKey, caseId], diff --git a/pages/court/[caseid].tsx b/pages/court/[caseid].tsx index 7dde43862..9b9a03f6e 100644 --- a/pages/court/[caseid].tsx +++ b/pages/court/[caseid].tsx @@ -392,8 +392,8 @@ const CasePage: NextPage = ({ View Market -
-
+
+
@@ -428,7 +428,7 @@ const CasePage: NextPage = ({
-
+