Merge branch 'refactoring' into automated-market-resolution
# Conflicts: # common/contract.ts
This commit is contained in:
commit
7c825242e2
|
@ -94,9 +94,7 @@ export type Numeric = {
|
|||
export type contractField = keyof Contract
|
||||
export type outcomeType = AnyOutcomeType['outcomeType']
|
||||
export type resolution = 'YES' | 'NO' | 'MKT' | 'CANCEL'
|
||||
|
||||
export const RESOLUTIONS = [ 'YES', 'NO', 'MKT', 'CANCEL'] as const
|
||||
export const RESOLUTION_TYPES = ['MANUAL', 'COMBINED'] as const
|
||||
export const RESOLUTIONS = ['YES', 'NO', 'MKT', 'CANCEL'] as const
|
||||
export const OUTCOME_TYPES = ['BINARY', 'FREE_RESPONSE', 'NUMERIC'] as const
|
||||
export const MAX_QUESTION_LENGTH = 480
|
||||
export const MAX_DESCRIPTION_LENGTH = 10000
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import clsx from 'clsx'
|
||||
import {
|
||||
ClockIcon,
|
||||
DatabaseIcon,
|
||||
|
@ -33,7 +32,6 @@ export function MiscDetails(props: {
|
|||
}) {
|
||||
const { contract, showHotVolume, showCloseTime } = props
|
||||
const { volume, volume24Hours, closeTime, tags } = contract
|
||||
const { volumeLabel } = contractMetrics(contract)
|
||||
// Show at most one category that this contract is tagged by
|
||||
const categories = CATEGORY_LIST.filter((category) =>
|
||||
tags.map((t) => t.toLowerCase()).includes(category)
|
||||
|
|
Loading…
Reference in New Issue
Block a user