Use queried username for length check
This commit is contained in:
parent
ed72f6fc9b
commit
bbb03433ed
@ -73,7 +73,7 @@ export default function () {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
setHistory([]);
|
setHistory([]);
|
||||||
|
|
||||||
if (username.length < 4) {
|
if (queriedUsername.length < 4) {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
return toast({
|
return toast({
|
||||||
title: "Validation Error",
|
title: "Validation Error",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user