Use queried username for length check

This commit is contained in:
Regalijan 2023-10-22 17:03:24 -04:00
parent ed72f6fc9b
commit bbb03433ed
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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",