fixed bug lfwd

This commit is contained in:
Amirhossein Mahmoodi
2024-07-14 11:17:40 +03:30
parent f063a4abd1
commit 933881417a

View File

@@ -17,7 +17,7 @@ const Page = ({ searchParams }) => {
const login = async () => {
try {
await request(`${GET_LOGIN_ROUTE}?username=${username}`);
getUser()
await getUser()
setLogin(1);
} catch (error) {
setLogin(2);
@@ -31,7 +31,7 @@ const Page = ({ searchParams }) => {
setLogin(0);
try {
await request(`${GET_LOGIN_ROUTE}?username=${username}`);
getUser()
await getUser()
setLogin(1);
} catch (error) {
setLogin(2);