Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use queried username for length check
  • Loading branch information
regalijan committed Oct 22, 2023
1 parent ed72f6f commit bbb0343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/hammer.tsx
Expand Up @@ -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",
Expand Down

0 comments on commit bbb0343

Please sign in to comment.