lfqian commited on
Commit
809cc4a
·
1 Parent(s): a158720

Fix EOD date in Join Arena page: use actual sequence date instead of leaderboard end_date

Browse files
Files changed (1) hide show
  1. src/views/RequestView.vue +3 -4
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">20251032</span>
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 leaderboard data (most accurate)
383
  const rowsForAsset = (this.rowsRef || []).filter(r => r.asset === code)
384
- const endDates = rowsForAsset.map(r => r.end_date).filter(Boolean)
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])