Spaces:
Running
Running
Fix EOD date in Join Arena page: use actual sequence date instead of leaderboard end_date
Browse files
src/views/RequestView.vue
CHANGED
|
@@ -56,7 +56,7 @@
|
|
| 56 |
<div class="asset-foot">
|
| 57 |
<div class="asset-foot-row">
|
| 58 |
<span class="muted">EOD</span>
|
| 59 |
-
<span class="mono">
|
| 60 |
</div>
|
| 61 |
</div>
|
| 62 |
</article>
|
|
@@ -379,10 +379,9 @@ export default {
|
|
| 379 |
const lastIdx = bh.length - 1
|
| 380 |
if (lastIdx < 0) continue
|
| 381 |
|
| 382 |
-
// Get end_date from
|
| 383 |
const rowsForAsset = (this.rowsRef || []).filter(r => r.asset === code)
|
| 384 |
-
const
|
| 385 |
-
const lastDate = endDates.length ? endDates.sort().pop() : (seq[lastIdx]?.date || null)
|
| 386 |
|
| 387 |
const spark = this.sampleSeries(bh.map(v => v), 12)
|
| 388 |
const change1m = this.pctChange(spark[0], spark[spark.length - 1])
|
|
|
|
| 56 |
<div class="asset-foot">
|
| 57 |
<div class="asset-foot-row">
|
| 58 |
<span class="muted">EOD</span>
|
| 59 |
+
<span class="mono">{{ a.eod || '—' }}</span>
|
| 60 |
</div>
|
| 61 |
</div>
|
| 62 |
</article>
|
|
|
|
| 379 |
const lastIdx = bh.length - 1
|
| 380 |
if (lastIdx < 0) continue
|
| 381 |
|
| 382 |
+
// Get end_date from actual sequence data (most accurate)
|
| 383 |
const rowsForAsset = (this.rowsRef || []).filter(r => r.asset === code)
|
| 384 |
+
const lastDate = seq[lastIdx]?.date || null
|
|
|
|
| 385 |
|
| 386 |
const spark = this.sampleSeries(bh.map(v => v), 12)
|
| 387 |
const change1m = this.pctChange(spark[0], spark[spark.length - 1])
|