Laksh718 Claude Sonnet 4.6 commited on
Commit
8cd76af
·
1 Parent(s): 7f710f2

fix: clearFeed must not wipe #feed-empty — remove only .msg children

Browse files
Files changed (1) hide show
  1. frontend/app.js +2 -1
frontend/app.js CHANGED
@@ -571,7 +571,8 @@ function renderReward(stepData) {
571
  // CONVERSATION FEED
572
  // ═══════════════════════════════════════════════════════════
573
  function clearFeed() {
574
- $('message-feed').innerHTML = '';
 
575
  $('feed-empty').classList.remove('hidden');
576
  }
577
 
 
571
  // CONVERSATION FEED
572
  // ═══════════════════════════════════════════════════════════
573
  function clearFeed() {
574
+ // Remove only .msg elements — leave #feed-empty intact
575
+ document.querySelectorAll('#message-feed .msg').forEach(el => el.remove());
576
  $('feed-empty').classList.remove('hidden');
577
  }
578