From 2be9727725564c2918168745cf82340d920c3605 Mon Sep 17 00:00:00 2001 From: Sasa Lotina Date: Wed, 15 Mar 2023 10:15:29 +0100 Subject: [PATCH] Set first two wild cards for March Madness --- src/constants/marchMadness.ts | 10 +++++----- .../MarchMadness/components/Brackets/Brackets.tsx | 4 ++-- src/utils/markets.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/constants/marchMadness.ts b/src/constants/marchMadness.ts index a3b7d616..498be39d 100644 --- a/src/constants/marchMadness.ts +++ b/src/constants/marchMadness.ts @@ -795,8 +795,8 @@ export const teamsData: MarchMadTeam[] = [ }, { id: 16, - name: '', - displayName: 'Wild Card', + name: 'Texas A&M-CC Islanders', + displayName: 'Texas A&M-CC', region: 'South', position: 16, }, @@ -984,8 +984,8 @@ export const teamsData: MarchMadTeam[] = [ }, { id: 43, - name: '', - displayName: 'Wild Card', + name: 'Pittsburgh Panthers', + displayName: 'Pittsburgh', region: 'Midwest', position: 11, }, @@ -1076,7 +1076,7 @@ export const teamsData: MarchMadTeam[] = [ { id: 56, name: 'Arkansas Razorbacks', - displayName: 'Arkansase', + displayName: 'Arkansas', region: 'West', position: 8, }, diff --git a/src/pages/MarchMadness/components/Brackets/Brackets.tsx b/src/pages/MarchMadness/components/Brackets/Brackets.tsx index 3aacf166..c39db472 100644 --- a/src/pages/MarchMadness/components/Brackets/Brackets.tsx +++ b/src/pages/MarchMadness/components/Brackets/Brackets.tsx @@ -652,13 +652,13 @@ const Brackets: React.FC = () => { {t('march-madness.regions.midwest')} diff --git a/src/utils/markets.ts b/src/utils/markets.ts index 0501ab7f..fb138e12 100644 --- a/src/utils/markets.ts +++ b/src/utils/markets.ts @@ -360,7 +360,7 @@ export const updateTotalQuoteAndAmountFromContract = (parlayMarkets: ParlayMarke return { ...parlay, totalQuote, - totalAmount: parlay.sUSDAfterFees / totalQuote, + totalAmount: totalQuote ? parlay.sUSDAfterFees / totalQuote : 0, }; } else { return parlay;