Skip to content

Commit abc6f19

Browse files
authored
Merge pull request #14754 from guardian/gh-ab-testing-frontend-message
A/B testing (beta) frontend changes
2 parents 16b8706 + ab995f4 commit abc6f19

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ab-testing/frontend/src/routes/+page.svelte

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import AudienceBreakdown from '$lib/components/AudienceBreakdown.svelte';
55
</script>
66

7-
<h1 class="headline">A/B Tests</h1>
7+
<h1 class="headline">A/B Tests (Beta)</h1>
88
<section>
99
<p>
1010
This page provides an overview of currently running A/B tests on
@@ -31,8 +31,14 @@
3131
</p>
3232
</section>
3333
<section>
34-
<AudienceBreakdown tests={activeABtests} />
35-
<Table tests={allABTests} />
34+
{#if activeABtests.length > 0}
35+
<AudienceBreakdown tests={activeABtests} />
36+
{/if}
37+
{#if allABTests.length > 0}
38+
<Table tests={allABTests} />
39+
{:else}
40+
<p>There are <b>ZERO</b> A/B tests currently configured!</p>
41+
{/if}
3642
</section>
3743

3844
<style>

0 commit comments

Comments
 (0)