Codex commited on
Commit ·
07c4ad7
1
Parent(s): 2294e46
Show only yes side in Circa market displays
Browse files- src/embeds.js +2 -1
src/embeds.js
CHANGED
|
@@ -540,7 +540,8 @@ function chunkTextPages(lines, maxLength = 3400) {
|
|
| 540 |
}
|
| 541 |
|
| 542 |
export function buildCircaMarketEmbeds(snapshot, marketLabel, entries, options = {}) {
|
| 543 |
-
const
|
|
|
|
| 544 |
const team = entry.team ? ` (${entry.team})` : '';
|
| 545 |
const side = `${String(entry.side ?? '').toUpperCase()}${entry.lineValue !== null && entry.lineValue !== undefined ? ` ${entry.lineValue}` : ''}`;
|
| 546 |
return `${entry.playerName}${team} | ${side} | ${entry.oddsInput}`;
|
|
|
|
| 540 |
}
|
| 541 |
|
| 542 |
export function buildCircaMarketEmbeds(snapshot, marketLabel, entries, options = {}) {
|
| 543 |
+
const displayEntries = entries.filter((entry) => entry.side !== 'no');
|
| 544 |
+
const lines = displayEntries.map((entry) => {
|
| 545 |
const team = entry.team ? ` (${entry.team})` : '';
|
| 546 |
const side = `${String(entry.side ?? '').toUpperCase()}${entry.lineValue !== null && entry.lineValue !== undefined ? ` ${entry.lineValue}` : ''}`;
|
| 547 |
return `${entry.playerName}${team} | ${side} | ${entry.oddsInput}`;
|