From a3de9ba924ff100e6d3e8a03b0ec1f1b0e1ab48c Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Tue, 10 Sep 2024 16:46:42 -0400 Subject: [PATCH] Show endpoint error first --- src/pages/Home.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 57fd18b..89c719e 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -106,12 +106,12 @@ function Home() { const getEmptyFields = () => { return ( - !rating - ? "You must enter a rating!" - : fields[0].dynamicState[0].length < 2 - ? "You must enter a username at least 2 characters long!" - : !endpoint - ? "Endpoint is not set!" + !endpoint + ? "Endpoint is not set!" + : !rating + ? "You must input a rating!" + : fields[0].dynamicState[0].length < 2 + ? "You must enter a username at least 2 characters long!" : "" ); }