From dba938032f96d46bb0aa63b1ffcf89212270d02c Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 28 Sep 2022 09:52:16 -0400 Subject: [PATCH] Listen for updates on daily mover contract --- web/components/contract/prob-change-table.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/components/contract/prob-change-table.tsx b/web/components/contract/prob-change-table.tsx index 07b7c659..f54ad915 100644 --- a/web/components/contract/prob-change-table.tsx +++ b/web/components/contract/prob-change-table.tsx @@ -7,6 +7,7 @@ import { SiteLink } from '../site-link' import { Col } from '../layout/col' import { Row } from '../layout/row' import { LoadingIndicator } from '../loading-indicator' +import { useContractWithPreload } from 'web/hooks/use-contract' export function ProbChangeTable(props: { changes: CPMMContract[] | undefined @@ -59,7 +60,9 @@ export function ProbChangeRow(props: { contract: CPMMContract className?: string }) { - const { contract, className } = props + const { className } = props + const contract = + (useContractWithPreload(props.contract) as CPMMContract) ?? props.contract return (