Skip to content

Commit

Permalink
register form changed
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavtomar04 committed Jul 3, 2024
1 parent 3ea23cd commit 9ad0c59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { auth, db } from "../../lib/firebase";
import { doc, setDoc } from "firebase/firestore";
import upload from "../../lib/upload";
import { collection, query, where, getDocs } from "firebase/firestore";
import { set } from "firebase/database";


const Login = () => {
const [avatar, setAvatar] = useState({
Expand Down Expand Up @@ -39,6 +39,7 @@ const Login = () => {
if (!username || !email || !password)
return toast.warn("Please enter inputs!");
if (!avatar.file) return toast.warn("Please upload an avatar!");


// VALIDATE UNIQUE USERNAME
const usersRef = collection(db, "users");
Expand Down

0 comments on commit 9ad0c59

Please sign in to comment.