Skip to content

Commit

Permalink
Remove extraneous brackets from totals odds
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptarchist committed Jun 28, 2019
1 parent a668c84 commit 512756d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/renderer/components/betting/components/EventList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@
"
>
<span class="totalnum"
>O{{ event.odds[2].totalsPoints / 10 }}</span
>(O{{ event.odds[2].totalsPoints / 10 }})</span
>

<span class="totalodds"
>({{ convertOdds(event.odds[2].totalsOver) }})</span
>{{ convertOdds(event.odds[2].totalsOver) }}</span
>
</button>
</div>
Expand All @@ -254,11 +254,11 @@
"
>
<span class="totalnum"
>U{{ event.odds[2].totalsPoints / 10 }}</span
>(U{{ event.odds[2].totalsPoints / 10 }})</span
>

<span class="totalodds"
>({{ convertOdds(event.odds[2].totalsUnder) }})</span
>{{ convertOdds(event.odds[2].totalsUnder) }}</span
>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/oddsConverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const OddsConverter = {
d *= -1;
}
const g = this.gcd(n, d);
return g == 1 ? `(${n}/${d})` : `(${parseInt(n / g)}/${parseInt(d / g)})`;
return g == 1 ? `${n}/${d}` : `${parseInt(n / g)}/${parseInt(d / g)}`;
},

toAmerican: function toAmerican(decimal) {
Expand Down

0 comments on commit 512756d

Please sign in to comment.