diff --git a/apps/player/src/components/BetHistoryCard.vue b/apps/player/src/components/BetHistoryCard.vue index 9d079b4..7ebaf16 100644 --- a/apps/player/src/components/BetHistoryCard.vue +++ b/apps/player/src/components/BetHistoryCard.vue @@ -88,6 +88,18 @@ const subtitle = computed(() => { const stakeAmount = computed(() => formatMoney(props.bet.stake, locale.value)); +const oddsText = computed(() => { + const o = props.bet.totalOdds; + if (o == null || o === '' || o === 0) return ''; + const n = parseFloat(String(o)); + return Number.isFinite(n) ? n.toFixed(2) : String(o); +}); + +const betTypeLabel = computed(() => { + if (props.bet.isParlay) return t('bet.parlay'); + return props.bet.betType || ''; +}); + const returnAmount = computed(() => { if (statusKey.value === 'won') return formatMoney(props.bet.actualReturn, locale.value); if (statusKey.value === 'pending') return formatMoney(props.bet.potentialReturn, locale.value); @@ -107,17 +119,22 @@ function goDetail() {