Show endpoint error first
This commit is contained in:
parent
0c5a6ddde9
commit
a3de9ba924
|
@ -106,12 +106,12 @@ function Home() {
|
||||||
|
|
||||||
const getEmptyFields = () => {
|
const getEmptyFields = () => {
|
||||||
return (
|
return (
|
||||||
!rating
|
!endpoint
|
||||||
? "You must enter a rating!"
|
? "Endpoint is not set!"
|
||||||
: fields[0].dynamicState[0].length < 2
|
: !rating
|
||||||
? "You must enter a username at least 2 characters long!"
|
? "You must input a rating!"
|
||||||
: !endpoint
|
: fields[0].dynamicState[0].length < 2
|
||||||
? "Endpoint is not set!"
|
? "You must enter a username at least 2 characters long!"
|
||||||
: ""
|
: ""
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue