Browse Source

add banner id to iteration

Sine Jespersen 1 month ago
parent
commit
5590ad438f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/Navbar.svelte

+ 1 - 1
src/lib/components/chat/Navbar.svelte

@@ -283,7 +283,7 @@
 					{/if}
 
 					{#if showBanners}
-						{#each $banners.filter((b) => ![...JSON.parse(localStorage.getItem('dismissedBannerIds') ?? '[]'), ...closedBannerIds].includes(b.id)) as banner}
+						{#each $banners.filter((b) => ![...JSON.parse(localStorage.getItem('dismissedBannerIds') ?? '[]'), ...closedBannerIds].includes(b.id)) as banner (banner.id)}
 							<Banner
 								{banner}
 								on:dismiss={(e) => {