Fix types

This commit is contained in:
jahooma 2022-01-22 18:14:41 -06:00
parent aa1022546d
commit e53dd78502

View File

@ -40,6 +40,7 @@ import { Bet, withoutAnteBets } from '../lib/firebase/bets'
import { Comment, mapCommentsByBetId } from '../lib/firebase/comments'
import { JoinSpans } from './join-spans'
import Textarea from 'react-expanding-textarea'
import { outcome } from '../../common/contract'
export function AvatarWithIcon(props: { username: string; avatarUrl: string }) {
const { username, avatarUrl } = props
@ -355,7 +356,7 @@ function FeedDescription(props: { contract: Contract }) {
)
}
function OutcomeIcon(props: { outcome?: 'YES' | 'NO' | 'CANCEL' }) {
function OutcomeIcon(props: { outcome?: outcome }) {
const { outcome } = props
switch (outcome) {
case 'YES':