From 5d00c1379e4b7cb3c02a15c1021f3137f9dec123 Mon Sep 17 00:00:00 2001 From: Basti Ortiz <39114273+BastiDood@users.noreply.github.com> Date: Fri, 9 Aug 2024 10:44:52 +0800 Subject: [PATCH] fix(draft): ensure that draft cannot be initialized without sufficient quota --- .../dashboard/(admin)/drafts/+page.svelte | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/app/src/routes/dashboard/(admin)/drafts/+page.svelte b/app/src/routes/dashboard/(admin)/drafts/+page.svelte index ab0a4a6..a113d88 100644 --- a/app/src/routes/dashboard/(admin)/drafts/+page.svelte +++ b/app/src/routes/dashboard/(admin)/drafts/+page.svelte @@ -14,26 +14,27 @@ {#if draft === null} - {#if labs.some(({ quota }) => quota <= 0)} + {#if labs.some(({ quota }) => quota > 0)} +
+ Welcome to the Draft Ranking Automated Processor! There are currently no drafts + happening at the moment, but as an administrator, you have the authorization to start a new one. +
++ To begin, simply provide the the maximum number of rounds for the upcoming draft. This has + historically been set to 5. +
+- Welcome to the Draft Ranking Automated Processor! There are currently no drafts - happening at the moment, but as an administrator, you have the authorization to start a new one. -
-- To begin, simply provide the the maximum number of rounds for the upcoming draft. This has historically - been set to 5. -
-