Listen for updates on daily mover contract

This commit is contained in:
James Grugett 2022-09-28 09:52:16 -04:00
parent 7c8e977d60
commit dba938032f

View File

@ -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 (
<Row
className={clsx(