diff --git a/web/components/numeric-resolution-panel.tsx b/web/components/numeric-resolution-panel.tsx index 371dd94b..dce36ab9 100644 --- a/web/components/numeric-resolution-panel.tsx +++ b/web/components/numeric-resolution-panel.tsx @@ -1,5 +1,5 @@ import clsx from 'clsx' -import React, { useEffect, useState } from 'react' +import React, { useState } from 'react' import { Col } from './layout/col' import { User } from 'web/lib/firebase/users' @@ -16,11 +16,6 @@ export function NumericResolutionPanel(props: { contract: NumericContract | PseudoNumericContract className?: string }) { - useEffect(() => { - // warm up cloud function - resolveMarket({} as any).catch(() => {}) - }, []) - const { contract, className } = props const { min, max, outcomeType } = contract diff --git a/web/components/resolution-panel.tsx b/web/components/resolution-panel.tsx index 10dee789..7bb9f2d4 100644 --- a/web/components/resolution-panel.tsx +++ b/web/components/resolution-panel.tsx @@ -1,5 +1,5 @@ import clsx from 'clsx' -import React, { useEffect, useState } from 'react' +import React, { useState } from 'react' import { Col } from './layout/col' import { User } from 'web/lib/firebase/users' @@ -18,11 +18,6 @@ export function ResolutionPanel(props: { contract: BinaryContract className?: string }) { - useEffect(() => { - // warm up cloud function - resolveMarket({} as any).catch(() => {}) - }, []) - const { contract, className } = props const earnedFees =