Don't "warm up" resolveMarket anymore (#638)
This commit is contained in:
parent
0882f1c0d6
commit
43b30e6d04
|
@ -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
|
||||
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue
Block a user