JacobLinCool Codex commited on
Commit
07b5572
·
verified ·
1 Parent(s): 13fe947

deploy: sync GitHub main 2a749ee

Browse files

Deploys 2a749ee9c27ec0d92bc3dd10eae762f408e42bf1.

Co-authored-by: Codex <noreply@openai.com>

Files changed (1) hide show
  1. static/app.js +5 -1
static/app.js CHANGED
@@ -81,6 +81,7 @@ let voiceRecordingState = "idle";
81
  let decodeStartedAt = 0;
82
  let turnProgressTimer = null;
83
  let dashboardData = null;
 
84
  let selectedClusterId = "";
85
  let selectedQuestId = "";
86
  let selectedProjectId = "";
@@ -465,7 +466,10 @@ function renderDashboard(data) {
465
  handleDashboardError(new Error("empty dashboard payload"));
466
  return;
467
  }
468
- if (!selectedProjectId) selectedProjectId = mostLikedPoint(data.points)?.id || data.points[0].id;
 
 
 
469
  renderAtlasStats(data);
470
  renderAtlasClusters(data);
471
  renderAtlasQuests(data);
 
81
  let decodeStartedAt = 0;
82
  let turnProgressTimer = null;
83
  let dashboardData = null;
84
+ const SELF_PROJECT_ID = "build-small-hackathon/hackathon-advisor";
85
  let selectedClusterId = "";
86
  let selectedQuestId = "";
87
  let selectedProjectId = "";
 
466
  handleDashboardError(new Error("empty dashboard payload"));
467
  return;
468
  }
469
+ if (!selectedProjectId) {
470
+ const selfPoint = data.points.find((point) => point.id === SELF_PROJECT_ID);
471
+ selectedProjectId = selfPoint?.id || mostLikedPoint(data.points)?.id || data.points[0].id;
472
+ }
473
  renderAtlasStats(data);
474
  renderAtlasClusters(data);
475
  renderAtlasQuests(data);