Skip to content

Commit

Permalink
Avoid showing bundle header when there're no live bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
candela97 committed Mar 12, 2024
1 parent ebbcea7 commit 183d89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Content/Modules/Prices/BundleOverview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
});
</script>

{#if data.length > 0}
{#if data.length > 0 && data.some(v => !v.expiry || Date.parse(v.expiry) > Date.now())}
<h2 class="gradientbg es_external_icon">{Localization.str.bundle.header}</h2>

{#each data as bundle}
Expand Down

0 comments on commit 183d89e

Please sign in to comment.