Use queried username for length check

This commit is contained in:
2023-10-22 17:03:24 -04:00
parent ed72f6fc9b
commit bbb03433ed

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