Don't "warm up" resolveMarket anymore (#638)

This commit is contained in:
Marshall Polaris 2022-07-12 12:36:10 -07:00 committed by GitHub
parent 0882f1c0d6
commit 43b30e6d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

View File

@ -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

View File

@ -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 =