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