Show endpoint error first

This commit is contained in:
powermaker450 2024-09-10 16:46:42 -04:00
parent 0c5a6ddde9
commit a3de9ba924

View file

@ -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!"
: ""
);
}