From d5cb1b32de8e863e56d086cd2c85ac15ffbb0a67 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Sun, 10 Jul 2022 13:35:41 -0700 Subject: [PATCH] Don't "warm up" resolveMarket anymore --- web/components/numeric-resolution-panel.tsx | 7 +------ web/components/resolution-panel.tsx | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/web/components/numeric-resolution-panel.tsx b/web/components/numeric-resolution-panel.tsx index 98a2aabc..c88dbdef 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 a46d9478..46c5f9ea 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 =